title: Closing Form In C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10769193/c-sharp-working-with-mutliple-forms">C# Working with mutliple Forms</a>  </p>
  </blockquote>
  
  
  
  <p>I have two forms in C#.  I want to close one form and show other.  The code is as follows:</p>
  
  <pre><code>AMBR A = new AMBR();
  this.Close();
  A.Show();  
  </code></pre>
  
  <p>The current form is my main form.  It shows my second form, but than closes both and my program stops.  I know another standard approach is to hide the form, but my main form only has a logo and loading bar.  It don't need any interaction with the user.  When I hide it, after the second form is closed the program remain open (as seen in the task manager) and continues to occupy resources.  I want the main form to close and second form to remain open.</p>