« il: 31 Gennaio 2014, 20:13:13 »
Riporto questa discussione apparsa nella M.L. ufficiale:
"
How to make an event for Key Press Escape button to close a form
Thanks
abbat "
"
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 "
"
They are: Buttons have a Cancel and a Default property for that. The
"Cancel" button is activated by the ESC key, the "Default" button is
activated by the RETURN key. But it does not close anything by default!
You must handle the buttons click events for that.
--
Benoît Minisini "
Registrato
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »