Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.ActiveControl is invalid in QueryUnload event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00030059
Message ID:
00030079
Vues:
41
>>>Does anyone know why the property thisform.ActiveControl (which should evaluate to the current control on the form) is invalid inside the QueryUnload event?
>>
Hey Peter if you are in QueryUnload (form event) may be it logical to don't have a activeControl because you live the form so the activecontrol was the form.

May be what you need was the last object who got the focus so i don't really know if it a easy way for find it but you can make your own reference of it with the event gotfocus

>>
>>>I need to be able to determine the current control in order to validate that control. ( and posibly all parents). Note: the LostFocus (of any object) event is not called when the form is closed.
>>
>>Look For destroy event !!!
>By the time the destory event comes arount I have no change to validate the control (which is the purpose for look at thisform.ActiveControl)

What's about unload form event

>
>Peter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform