Hi,
This is driving me crazy. I need to move a graphics object around a picture box, using the left,right,up and down keys. As far as i know you use the below method to achieve that:
I have even tried adding some code to display a simple message box for each case (to check if it works that way), to no no avail.
Am i missing something here?
thx
This is driving me crazy. I need to move a graphics object around a picture box, using the left,right,up and down keys. As far as i know you use the below method to achieve that:
Code:
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
Case Keys.Left
' Do something
Case Keys.Right
'Etc
Case Keys.Up
'and something else
Case Keys.Down
'flsdfs
End Select
I have even tried adding some code to display a simple message box for each case (to check if it works that way), to no no avail.
Am i missing something here?
thx