>>>>And if you have two modeless open forms, both with cmdcancel button:
>>>>- form1.textbox with focus
>>>>- user click on the form2.cmdcancel .... form1 it is released!
>>>>
>>>
>>>I was able to re-produce this behavior with two forms. Now, the question is: how can we distinguish between forms? If it's the same form, I can not use name as the identifier. The forms are invoked with DoForm procedure... So, do you have some ideas to solve this problem? I'm not having a good idea at this time...
>>
>>uses
>>
>>AMOUSEOBJ(,1)
>>
>
>Thanks < g > This is too easy then :)
Sure, but this programming depends on the VFP's speed relative to the speed of the customer's hand
- if you have a machine to 101% of CPU and a customer with the hand of "Flash" ,
then could give turns out to you wrong.