title: Cancel form closing from some event
body: <p>I want my <i>formClosing</i> event to <i>cancel</i> its closing operation if the <i>SaveFileDialog</i>, in my <i>SaveAs</i> Click event, is <i>Cancel</i></p>
  
  <pre><code>void exitToolStripMenuItem_Click (object sender, EventArgs e) {
      this.Close ();
  }
  
  void form1_FormClosing (object sender, FormClosingEventArgs e) 
  {
      if (isContentChanged) 
      {
          DialogResult result = MessageBox.Show ("Do you want to save [ "+this.Text+"] ?", "Save", MessageBoxButtons.YesNoCancel);
          if (result == DialogResult.Yes) 
          {
              saveAsToolStripMenuItem_Click (sender, e);
          } 
          else if (result == DialogResult.Cancel) 
              e.Cancel = true;
      }
  }
  
  
  private void saveAsToolStripMenuItem_Click (object sender, EventArgs e) 
  {
      SaveFileDialog sfd = new SaveFileDialog ();
      sfd.Filter = "Drawing Files | *.drg";
      DialogResult result = sfd.ShowDialog ();
      if (result == DialogResult.OK) {
          SaveFile (sfd.FileName);
          isContentChanged = false;
      } 
      else if (result == DialogResult.Cancel) 
      {
          // NEED TO CANCEL FORM CLOSING HERE   
      }
  }
  </code></pre>
  
  <p>Is it possible? If yes, how?</p>