Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.ActiveControl is invalid in QueryUnload event
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00030059
Message ID:
00030079
Views:
43
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform