title: How to override closing control in Windows Form c#
body: <p>I would like to make X control closing window to hide current display previous form.</p>
  
  <p>In form1 I got:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      Form2 form2 = new Form2();
      form2.Tag = this;
      form2.Show(this);
      Hide();
  }
  </code></pre>
  
  <p>and then when I click X I would like to show previous and hide the current.</p>