title: Closing a form and then call another one
body: <p>I want to close the current form I'm on (MainForm) and then opening a second one (Form).</p>
  
  <p>I've tried:</p>
  
  <pre><code>private void buttonStartQuiz_Click(object sender, EventArgs e)
  {
      this.Close();
  
      Form2 form2 = new Form2();
      form2.ShowDialog();
  }
  </code></pre>
  
  <p>Or adding the <code>this.Close();</code> after <code>form2.ShowDialog()</code> also doesn't work.</p>
  
  <p>Any hints?</p>
  
  <p>EDIT: Might as well add that by adding <code>this.Close()</code> after <code>form2.ShowDialog()</code> it close only when I close the new form.
  If I choose <code>form2.Show()</code> instead it immediately closes both of the forms.</p>