Zlatko,
Have a button with the CANCEL property set to TRUE. In the "Click" method put your ThisForm.release() code. You can hide the button behind some other control or mark it Visible = .f. if you don't want users to see it.
HTH
Barbara
>The user can close the form with CTRL+F4 or clicking the upper right corner or object with "ThisForm.release()" code.
>How could I make that the "ESC" would have the same effect?
>
>Thank's, Zlatko.