Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close form with close button instead of X
Message
 
To
08/02/2010 08:57:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01448035
Message ID:
01448040
Views:
96
>Dear Experts
>
>I use following codes to close form with only close button, that works fine.
>Now I want to use some codes in main prg to apply following code to all the forms in project instead of writing on every form.
>
>Please help
>
>
>MESSAGEBOX("Please press close button to exit",_screen.ActiveForm.caption)
>NODEFAULT
>
>
>
>these code are on queryunload evetn

QueryUnload Event will be fired ONLY if you press [X] button. If you have somewhere in the form thisform.Release() that event will be not fired.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform