>How do I make the ESCape key close a form? I suppose I could put an invisible button on the form with escape as the default. Is that the best way. I tried to use ON ESCAPE but couldn't get it to work.
Create a button that closes your form and set it's Cancel property to .T. The button can simply issue a Thisform.Release in the click event.