Using Keypress event to move an image around the form
|
Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Image1.Top = Image1.Top + 50
End If
End Sub
I used this code to make the image move down 50 each time I push the enter key (13) but I only used code 13 because its the only one I know... is there a code table or something so I can use other keys?
|
Last edited by Sorcerer Cloud; 11-02-2003 at 06:28 PM.
|