>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only