[Gambas-user] Keyboard input help requested

Benoît Minisini gambas at ...1...
Sat Mar 17 14:39:43 CET 2012


Le 17/03/2012 13:18, Cogier a écrit :
>
> Benoît,
>
> Thanks for the reply. I don't seem to understand how to use your advice. Can
> you please provide a working example.
>
> Thanks for any assistance.
>
> Charlie Ogier
> Les îles Anglo-Normandes
>

Let's suppose that your startup class is a module named "MMain".

' MMain.module

Public Sub Main()

   MyForm.Show
   ...

End

Public Sub Application_KeyPress()

   Debug "Key";; Key.Code;; "'";Key.Text;"' has been pressed."

End


-- 
Benoît Minisini




More information about the User mailing list