Wednesday, 19 October 2016
VB ARROW KEY MOVEMENT


---------------------------------------------------------------------------------------------------------
CODE:
0) COPY AND PASTE BELOW CODE IN FORM.vb
1) FROM THE TOOL BOX DRAG AND DROP PictureBox1
NOTE:
https://www.google.co.uk/search?q=VB+ARROW+KEY+MOVEMENT
Detecting arrow keys in winforms C# and vb.net
Most Windows Forms applications process keyboard input exclusively by
handling the keyboard events.
You can detect most physical key presses by
handling the KeyDown or KeyUp events.
Key events occur in the following order:
KeyDown KeyPress KeyUp---------------------------------------------------------------------------------------------------------
Public Class Form1
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
Me.PictureBox1.Left
-= 1
Case Keys.Up
Me.PictureBox1.Top
-= 1
Case Keys.Right
Me.PictureBox1.Left
+= 1
Case Keys.Down
Me.PictureBox1.Top
+= 1
End Select
End Sub
End Class
---------------------------------------------------------------------------------------------------------Related movie you might like to see :
?
+
X
Recommended for you
Loading..
Related Post for VB ARROW KEY MOVEMENT
VB GAMES ----------------------------------------------------------------------------------------------------------- VB GAMES DOWNLOAD WITH SOURCE FROM MICROSOFT https://code.msdn.micr…
GMAIL IN VB ----------------------------------------------------------------------------------------------------------------- SEND GMAIL IN VB 2010 CODE: 1) DRAG & DROP ONE BU…
POP AND IMAP SETTING IN OUTLOOK ------------------------------------------------------------------------------------------------------------------- IMAP AND POP SETTING IN OUTLOOK IN OPTION 0)CLICK…
VB ARROW KEY MOVEMENT --------------------------------------------------------------------------------------------------------- CODE: 0) COPY AND PASTE BELOW CODE IN FORM.vb 1) FROM THE TOOL …
Labels:
VB
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.