Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable the closeing of a form!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00122541
Message ID:
00122545
Vues:
9
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform