[Gambas-user] KeyPress Escape to close a form
Tobias Boege
taboege at ...626...
Fri Jan 31 19:25:47 CET 2014
On Fri, 31 Jan 2014, abbat81 wrote:
> How to make an event for Key Press Escape button to close a form
> Thanks
>
Do you mean:
Public Sub Form_KeyPress()
If Key.Code = Key.Esc Then Me.Close()
End
This has nothing to do with a Button you were mentioning in the question but
honestly, I don't see how Buttons may be connected to this...
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list