Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using BindEvent to close a form when parent closes
Message
 
À
12/07/2009 14:52:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01411652
Message ID:
01411739
Vues:
42
Hi Jim,

> It appears that all the Destroy events do not occur if there is a dangling reference.

True. If there's a dangling reference in Form A, the second approach wouldn't work. My assumption, though, was that the only dangling reference was the reference to Form A in Form B. By just using a window handle as the call back mechanism the need to keep the reference vanishes. If you however still need a reference to Form A for some other purposes than closing Form B, this approach wouldn't work.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform