-
July 16th, 2011, 11:44 PM
#1
C# How do I Move a PictureBox slowly to the MouseClick x y position
Hello, can someone help me with making a code to moving a picture box slow but not to slow until it meets the mouseclick x y position. The code i have right now is for the mouse click:
protected override void OnMouseClick(MouseEventArgs e)
{
base.OnMouseClick(e);
picX = e.X;
picY = e.Y;
}
where picX is pictureBox1.Location.X and picY is its y location.
I dont know the code to make the pictureBox1 location move slowly.
Does anyone know how to do this?
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
|