*** ActiveX Control Event *** LPARAMETERS keyascii if keyascii = 27 thisform.cmdexitg1.Click() nodefault * thisform.KeyPress(keyascii) && tried this too, but ii does nothing... else dodefault() endifIt works, it presses the Exit button, the form exits, and then I get C0000005. Any ideas what's wrong?