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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute code before closing with "x"

Status
Not open for further replies.

klibby

Programmer
May 30, 2001
51
0
0
US
Is there a way (most likely with API I would think..) to make it so... when a user exits the program by clicking the "x" at the top right, before closing, it executes a line of code?
 
thank you for responding.... one problem though... Im using those right now... but if it is the last form that is up... normally it will close out before using the code in there
 
whoops, nevermind... hehe, never really needed to do anything before closing an app.... just realized I need to set cancel to true till the code is done executing in query_unload
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top