Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Place to Capture user closing form
Message
De
01/12/2000 10:50:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00445845
Message ID:
00448075
Vues:
15
>Why the Destroy? Why wouldn't you check this in the QueryUnload? The property is set prior to this event and if it is from the Control Menu or Close Box, you can stop it with a NODEFAULT.

You can put it there too, I should have mentioned that. Its nice to keep all cleanup code in one spot, since QueryUnload doesn't automatically fire when you release the form, so I put it in Destroy and if I need custom code for a certain releasetype, I release it there.

But, yeah, if you need to prevent closing the form, you gotta do it earlier.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform