Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Close button (Top Right x) on Forms?

You guys are great on this forum - I just wish the questions we're a little
easier so I could answer them. Anyways, can anyone tell me how I can write
into a program an 'IF' statement - when the top right Close button(x) is
clicked (on a form). I cannot use the property 'Destroy Event' in this situation.
Thanks.
[354 byte] By [Dan] at [2007-11-10 12:50:24]
# 1 Re: Close button (Top Right x) on Forms?
Hello, Dan!
You wrote on 23 Jul 2003 05:23:36 -0700:

D> You guys are great on this forum - I just wish the questions we're a
D> little easier so I could answer them. Anyways, can anyone tell me how I
D> can write into a program an 'IF' statement - when the top right Close
D> button(x) is clicked (on a form). I cannot use the property 'Destroy
D> Event' in this situation. Thanks.

When the X is clicked, the form.QueryUnload event fires.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
Eric den Doop at 2007-11-11 23:50:41 >