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

What is the procedure activated by the Close (X) button on a form? 1

Status
Not open for further replies.

YoshiCD

Programmer
Feb 24, 2001
96
ES
What is the procedure activated by the Close (X) button on a form?

I need to manipulate the use of the button.

Thanks.

YoshiCD
-------------------------
"There is No Spoon.."
-------------------------
 
Try using the QueryUnload event of the Form object. When you click the "x" button, it triggers the Unload event. By using QueryUnload, you can control whether or not the form closes, and any other functions that you wish to include. -----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
You can use the QueryUnload event. By using the Cancel argument of this event you can decide whether or not to close the Form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top