mouse button down help

seanvoth

Well-known member
Joined
Aug 5, 2006
Messages
58
Programming Experience
1-3
is there code so when i click the LEFT mouse button my pic wll move to he left
 
You would handle the MouseDown Event for the form..

VB.NET:
If e.Buttons = MouseButtons.Left Then
 
Me.PictureBox1.Location = New Point(Me.PictureBox1.Location.x-10,Me.Picturebox1.location.y)
 
End if

You may need to check the e.buttons bit.
 
Back
Top