>>What I did is something like this in the Click().
>>
>>This.Enabled=.F.
>>ThisForm.MyProcess()
>>This.Enabled=.T.
>>
>>So, what happen is until those 3 lines are not finished, the application interface is not available. So, the This.Enabled=.T. will fire before the click of the mouse is processed by Visual FoxPro.
>>
>>The problem remains. Any more suggestions?
>
>DOEVENT before This.Enabled = .T. ??
>
>Don't forget about AUTOYIELD.
Same thing, it does not help.
I used DOEVENTS but didn't include AUTOYIELD. From the help file, the default is .T., which is what I need.