Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable the closeing of a form!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00122541
Message ID:
00122545
Views:
10
Hi Steve.
I believe you can check your form property in the QueryUnload method of the form.
If you do not want the form to close, use NODEFAULT.
IF NOT THISFORM.OkToClose
   NODEFAULT
ENDIF
Michael M. Emmons

>I have a set of forms which are MDI enabled so that they can be maximized within the FoxPro screen. I cannot disable the close and minimize and maximize buttons without it making my form into a regular window and killing the maximized window. I want the user to have to click a button to close the forms. I don't want them to be able to close each form seperately. I need to know how I can check a property when the user closes a form by clicking the X and not close the form if my property is set to whatever. Does anyone have any suggestions?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform