Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap close button
Message
De
08/02/2008 10:17:07
 
 
À
08/02/2008 10:12:55
Valter Molina
Molina & Nardi Ltda
Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Divers
Thread ID:
01290803
Message ID:
01290805
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform