title: How to close C# program, from the second form (not hide) C# Multiform issue
body: <p>Problem: I have created a program that has two forms. When a button is pressed on Form1, the program "hides" Form1 and "shows" Form2. The issue is, when I close Form2, the program continues to run in the background, I believe this is because the program needs Form1 to be closed, not hidden in order for the program to end.</p>
  
  <p>My Question is how do I override the Second Form to close the program and not hide?</p>
  
  <pre><code>    private void btnCreate_Click(object sender, EventArgs e)
      {
          Form2.Show(); 
          Form1.Hide();
      }
  </code></pre>
  
  <p>I know I could show Form1 again from Form2, and then close, but I would really like to avoid that.</p>