>I have a push button that is calling two other push buttons and disabling itself. The Click event is below. How can I give the user the ability to simply press the Esc key and enable all calling push button along with the others I am enabling...
>
>Click Event
>
>this.enabled = .f.
>with thisform
> .BTN_ANNUALS.enabled = .f.
> .BTN_REFUSAL.enabled = .f.
> .BTN_MORTALS.enabled = .f.
> .BTN_REPORTS.enabled = .f.
> .Btn_EnterReg.VISIBLE = .T.
> .Btn_EditReg.VISIBLE = .T.
> .Btn_EnterReg.SetFocus
>endwith
>
>TIA
>
>Jeff T.
Easiest/ cleanest way to do this is put another button on the form (you can move it out of sight if you wish) and set its Cancel property to .T.. Then in its click method, put code to enable your buttons.
Erik Moore
Clientelligence