Expand|Select|Wrap|Line Numbers
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- If Imgme.Top <= 400 Then
- Imgme.Top = 400
- End If
- If KeyCode = vbKeyRight Then
- c = c + 1
- If c = 12 Then c = 1
- Imgme.Picture = meright(c).Picture
- Imgme.Left = Imgme.Left + 45
- End If
- If KeyCode = vbKeyLeft Then
- d = d + 1
- If d = 8 Then d = 1
- Imgme.Picture = meleft(d).Picture
- Imgme.Left = Imgme.Left - 45
- End If
- End Sub
I tried doing something like this:
Expand|Select|Wrap|Line Numbers
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- If KeyCode = vbKeyDown Then
- Imgme.Picture = mecrouch.Picture
- End If
- -----
- Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
- If KeyCode = vbKeyDown Then
- Imgme.Picture = Imgme.Picture
- End If
Thanks in advance, I will appreciate it!