Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if Close [X] button of form is pressed?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00813774
Message ID:
00813776
Views:
8
>I want to set the .Closable property of a form to True. However, I have a need to detect if it was pressed and determine if I want to allow it to proceed or deny.
>
>1) Which is the 1st method that fires when the close [X] button is pressed?
>2) How do I prevent continuation of closing/releasing if I need?

In the QueryUnload event you can check the ReleaseType property to determine how it was closed. Issuing NODEFAULT will prevent releasing of the form.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform