|
-
Sep 15th, 2002, 03:24 AM
#1
Thread Starter
Fanatic Member
moving objects
hello there..
The following codes are for moving an image or objects USING ARROWS ON A KEYBOARD IN VISUAL BASIC...
What I want to learn is how to assign these arrows to move things in JAVASCRÝPT..
...ý MEAN I WANT TO MOVE ANY OBJECTS USÝNG ARROWS ON MY KEYBOARD..
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyUp:
Label1.Top = Label1.Top - 10
Case vbKeyDown:
Label1.Top = Label1.Top + 10
Case vbKeyLeft:
Label1.Left = Label1.Left - 10
Case vbKeyRight:
Label1.Left = Label1.Left + 10
End Select
End Sub
tHANKS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|