Hi,
I have tried your suggestions
>>Some suggestions though,
>>1. Add some code to handle ESC as well.
>>2. Let the click event of the cancel button set a flag (e.g. property on form)
However, it still doesn't work. It seem the buffon.click event is not fire, therefore, the "CancelProcess" flag is .F. all the time.
How to make the event fire? Why does it not fire?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...