Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Unload Event Handler

Status
Not open for further replies.

mattp14

Programmer
Apr 8, 2005
35
US
I've got a section of code that needs to be executed at form closing, but neither the closed or closing events work for me. The code needs to be executed BEFORE the form actually closes (it needs to gracefully stop some pending operations if they're in progress).

I of course can link this to my exit buttons and menu items, but if someone clicks on the X in the top right, i still get errors.

Any thoughts?

Thanks!
 
Take a look at the Closing event -- it gives you the chance to cancel.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks! I definitely didnt know about that useful piece of info :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top