title: Form Closing with DialogResult
body: <p>I have a <code>Form1</code> that has a button on it. When the button is clicked <code>Form2</code> will open up.</p>
  
  <p>The new form that pops up asks the user to enter in data to save to a file and when the <code>Form2</code>'s button is clicked it saves the entered user data to a specified path.</p>
  
  <p>Here is the <code>Form2</code>'s button click code:</p>
  
  <pre><code>private void dataBaseSaveButton_Click(object sender, EventArgs e)
      {
          if (firstNameTextBox.Text.Equals(string.Empty) || lastNameTextBox.Text.Equals(string.Empty) || payTextBox.Text.Equals(string.Empty))
          {
              MessageBox.Show("Please fill out all of the fields.", "Fields Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
          }
  
          else
          {
              //This is where I am saving the data to a file using StreamWrriter.
  
              this.Close();
          }
  </code></pre>
  
  <p>So now that <code>Form2</code> has closed a new <code>Form2</code> will open up, etc, etc.. (There is a loop in <code>Form1</code> that does this).</p>
  
  <h2>My problem is...</h2>
  
  <p>In <code>Form2</code> I also have a <code>_FormClosed</code> event that looks like this:</p>
  
  <pre><code>private void Form2_FormClosed(object sender, FormClosedEventArgs e)
      {
          DialogResult userAnswer = MessageBox.Show ("Do you wish to close ALL " + counterLabel.Text + " of the 'Form2' forms?", "Close ALL Forms?", 
              MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  
          if (userAnswer == DialogResult.Yes)
              this.Dispose();
      }
  </code></pre>
  
  <h2>So my question is...</h2>
  
  <p>How do I call the button click to properly close the <code>Form2</code> <strong>WITHOUT</strong> calling the <code>_FormClosed</code> event while keeping the functionality of the forms the same?</p>
  
  <h2>EDIT:</h2>
  
  <p>I know <code>this.Hide();</code> will do the trick.. but I am wondering if there is a way to not hide all of the <code>Form2</code>'s since there could be a large amount..</p>