>>>From the Help for AUTOYIELD = .F.:
>>>"All pending Windows events are placed in a queue, and the events in the queue
are processed when DOEVENTS is issued or a wait state occurs."
>>
>>But, in my case, I don't want to processed those events.
>
>Yes, you do. If the mouse message is processed when DOEVENT is issued, then your control is still disabled, so it will just "consume" the message from the message queue (hopefully :)).
OIC, thanks, I will try it and will keep you informed.