ON KEY LABEL ESC thisform.releaseOr, a much better solution is to put this in the KeyPress event method
if nKeyCode = 27 thisform.release endifPersonally 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>ok, thanks I will try and let you know