title: I have a strange problem in (Hide, show,close,showdialog) of Forms
body: <p>I have three Forms (<code>form1</code>, <code>form2</code>, <code>form3</code>). When <code>form1</code> loads it goes to <code>form2</code> by using this code:        </p>
  
  <pre><code>this.Hide();
  Form2 frm = new Form2();
  frm.ShowDialog();
  this.Close();
  </code></pre>
  
  <p><code>form2</code> contains a button to show <code>form3</code> and hide <code>form2</code> by using this code in  the button:</p>
  
  <pre><code>Form3 frm = new Form3();
  frm.Show();
  this.Hide();
  </code></pre>
  
  <p>the problem is when I click on this button the application exits.</p>
  
  <p>I need to show <code>form3</code> and hide <code>form2</code> when the button is clicked.</p>