>Set the Cancel property of the button to .T. (under the 'Other' tab of
>the Property sheet).
>
>/Paul
... and make sure that you do not capture the Escape key anywhere else, specifically not in the form (in the keypress event f.e.). Then it will work, ... most of the time. I've had similar experiences with failing Escape keys. I still have not found out why it sometimes does, and sometimes does not work.
One of the VFP mysteries. I'm working on it :)
Marc
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.