Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap close button
Message
From
08/02/2008 10:17:07
 
 
To
08/02/2008 10:12:55
Valter Molina
Molina & Nardi Ltda
Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
01290803
Message ID:
01290805
Views:
11
>How can I control when the user clicks on the X to close a Form?
>Is there a way to not let the form close when the X is clicked?
>I tried the Destroy method, but it only happens when the form is already closing.
>I need to controle whether I can let the user close or not the current form or be certain that the user realy wants to close it asking him.

Valter,
Have a look at the ReleaseType in the help
&& form.QueryUnload()

if( this.ReleaseType = 1 )
  nodefault
  return .f.
endif
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform