FYI Enable Arrow Keys/Tab in User Control

Bryce Gough

Active member
Joined
Mar 8, 2011
Messages
36
Location
Perth, Australia
Programming Experience
1-3
Hey Guys,

I was just working on a 2D RPG Engine I'm working on and noticed the User Controls use the arrow keys and tab key as function keys on the main form.
So I wrote a little piece of code to place in your control to allow arrow keys and the tab key to be pressed.

Protected Overrides Function ProcessDialogKey(keyData As Keys) As Boolean
       Return False
End Function


Hope I helped :)

Regards,
Bryce Gough
 
Top Bottom