>I am trying to give my users the option to press teh ESC key and return to the calling button .
>
>The base button is Btn_Admin. Once it's pressed, then 2 smaller buttons would appear to the side. If the user chooses to go back, press ESC and then the two other buttons visible properpty set to .f.
>
>Here's my code in the Valid event of one of the (2) sub-buttons called by the Btn_Admin:
>
>IF LASTKEY() = 27
> ThisForm.Btn_UProf.Visible = .F.
> ThisForm.Btn_Utilities.Enabled = .t.
> ThisForm.Btn_QuitApp.Enabled = .T.
> this.Visible = .f.
>
> ThisForm.Btn_Utilities.SetFocus()
> RETURN .t.
>
>ENDIF
The button which reacts to esc needs to have .cancel=.t.