Keydown event

I wanted to know how to define the event for a keydown event for the baseclassevents. I know you have to do something with the keycode and stuff but could somebody give me the exact code for that kind of event I tried this:

Private Sub... Form1_keydown...
Select Case e.keycode
Case keys.left
MsGBox("Left Arrow")
Case keys.right
MsgBox("Right arrow")
End select
End sub

Help please???

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!