Form closing event ?

  • Thread starter Thread starter John S
  • Start date Start date
J

John S

What event is fired when the user clicks on the "X" in the upper right-hand
corner. I need to know how to differntiate between this and a close button
I placed on the form.
 
Form_Closing event will be fired. You can cancel the close operation by
setting

e.Cancel = true;

in the System.ComponentModel.CancelEventArgs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top