Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the behavior of a form object shutdown
Message
 
To
14/10/2006 12:22:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01162001
Message ID:
01162005
Views:
22
This message has been marked as the solution to the initial question of the thread.
>Hi..
>
>By "on shutdown" we can create some mechanism to stop/control the application's end process..
>
>What about a form object (with both title and closeable set .t.) what is the best way to stop the process started by a click on the X (upright corner buttom)..
>
>Is it the possibility to use a "nodefault" command at release/unload methods to stop the default behavior? I'd like to turn it invisible instead of down..
>
>TIA
>
>Claudio

Clicking on X button you fire QueryUnload event. In it you could put:
thisform.Hide()
NODEFAULT
RETURN .f.
That will hide the from and will stop the form to be released.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform