Just found out there is already a property which will close the iBizObj form on escape.
<i><font color="#663300"><i><font color="#663300">Ed heres another one: Escape in forms to close the forms, same working as Ctrl+F4</font></i>
You mean you want that to be a default behavior? I think it would make things more confusing for most users.
If you want to add that to your forms, add a button with <code>Thisform.Release()</code> in its Click() event, and set the button's <b>Cancel</b> property to .T. You can even move the button so that it's not visible. It will respond to Escape, and close the form.
</font></i>
Regards Bhavbhuti ©2002 Bhavbhuti Nathwani |