how do you code a windows form to respond to the arrow keys ?

  • Thread starter Thread starter RS
  • Start date Start date
R

RS

Hello,

I need a VB.NET event handler that will respond to arrow keyboard input.
Also I would like an event handler that responds to mouse events. Where
can I look for sample code or maybe some instruction would help.

TIA RS
 
Hello,

RS said:
I need a VB.NET event handler that will respond to arrow keyboard input.
Also I would like an event handler that responds to mouse events. Where
can I look for sample code or maybe some instruction would help.

KeyDown, KeyUp, MouseDown, MouseUp, KeyPreview property of the form.

HTH,
Herfried K. Wagner
 
Hi,
//////
Private Sub xx_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles xx.KeyDown
Select Case e.KeyCode
Case Keys.Left
xx()
etc..................
End Select
End Sub
\\\\\\\\\\\\
Cor
 
Back
Top