Beautiful. Follows the KISS philosophy as well. My solution was based on monkeying around with MROW and MCOL one day to see if they still worked :-)
>John and Others,
>
>Here's an easier way to do this.
>
>1) Set the Cancel property of the Cancel button to .T.
>2) At the beginning of every Valid event put this code;
>
>
>IF LASTKEY() = 27
> RETURN .T.
>ENDIF
>
>
>The cancel property makes clicking the cancel button the same as pressing Escape. This has the added feature of making pressing Escape the same as clikcing the cancle button (that is the cancel button's click evnet will fire when pressing esacpe).
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05