>ON KEY LABEL ESC thisform.release>Or, a much better solution is to put this in the KeyPress event method
>if nKeyCode = 27 > thisform.release >endif>Personally I give my customers a last chance to regret, with a timeout. This also goes into the KeyPress event method
>DO CASE > CASE nKeyCode = 27 &&Escape > IF MESSAGEBOX('Do you really want to exit the program?',4+16+256,'Obs!',5000)=6 > thisform.Release() > ENDIF > CASE morestuff.. >ENDCASE>