Thanks Sergey, should have thought of that myself.
Do you see anything wrong with this code?
.....myControl.Click()
do myTopLevelForm
.....myControl.GotFocus()
thisform.control.myMethod()
>Would GotFocus event work for you?
>
>>I'm using VFP 7.0
>>
>>Is there any control method() that triggers when a top-level form gets the focus ?
>>
>>Specifically I want to call a top-level form from a control, and when that top-level form is closed refresh a control on the calling form. But I don't want to use the form.activate() if I can avoid it.
>>
>>TIA
Bill Morris