Smile
Add an image and copy and paste the picture of the smile face.
Double Click the form and click the down arrow on the right side and select KeyPress. Then insert the following code:
If KeyCode = 38 Then
Image1.Top = Image1.Top - 100
End If
If KeyCode = 40 Then
Image1.Top = Image1.Top + 100
End If
If KeyCode = 37 Then
Image1.Left = Image1.Left - 100
End If
If KeyCode = 39 Then
Image1.Left = Image1.Left + 100
End If
Its a simple code, If you press up then it moves up a 100. VB uses the If than to reconize the up key. The KeyCode = 38 for up and so on. I added a page that has all of the keycodes, click here to go to it.
If you have any problems e-mail me at vbx23@aol.com