title: How to stop loading a form in constructor in C# form application
body: <p>I have 2 forms. I get the requested data to connect to database in Form1, send it to Form2, show Form2 and fill the datagridview in constructor of Form2 after connecting to database. Here I check if there is any rows in sdr (SqlDataReader). If not, what I want to do is stopping the Form2 to be loaded and turn back to Form1.</p>
  
  <p>I tried <strong>this.close()</strong> but it doesn't work while executing the constructor of Form2.</p>
  
  <pre><code>if (!sdr.HasRows)
     {
        MessageBox.Show("No Data!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        this.Close();
     }
  </code></pre>
  
  <p>Any ideas ?</p>