[Gambas-user] KeyPress Event not raised in Picture Box

Ed & Clare Kelm twopilots at interisland.net
Fri Feb 24 01:13:33 CET 2023


I have a form with a picture box called picGame, and I want to capture 
keyboard input when the picture box has the focus.  However, the event 
is never raised.  My test code is:

Public Sub picGame_KeyPress()
    Print Key.Text
End

I am running 3.18.0 in Xubuntu 16.04.

What am I doing wrong?

Thanks!

Ed K.




More information about the User mailing list