title: form closing event in multiple windows form application using visual c#
body: <p>I have a multiple windows form application (frmMian, frmSteg and frmCrypt) in c#. From the main form (frmMain), I can call the other (two) forms. How can Iuse the form closing event similar to that used in VB to return to the main form whenever I exit any of the two forms?</p>
  
  <pre><code> FrmSteg frmstego = new FrmSteg();
      FrmCrypto frmcrypt = new FrmCrypto();
  
      private void btnsteg_Click(object sender, EventArgs e)
      {
  
          frmstego.Show();
          this.Hide() ; 
      }
  
      private void btncrypto_Click(object sender, EventArgs e)
      {
  
          frmcrypt.Show();
          this.Hide();
      }
  </code></pre>