Using timers for "Image dragging"
Okay,Hard to explain,Im going to try anyway
What im tyring to do is take a picturebox,and use a timer to let it look as if its"Dragged"towards the center of the form,I tried it using an arrary but failed(Because generally ? I suck.)
I also tried this:
Code:
Private Sub Timer1_Timer()
Picture1.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Timer1.Interval = 550
Picture1.Visible = False
Picture2.Visible = True
Timer1.Interval = 650
Picture2.Visible = False
Picture3.Visible = True
End Sub
But it doesnt work ! :-( I dont know what it is or how to do this;But there must be a way.
Help me out here.
-Aex
Re: Using timers for "Image dragging"
you want to move the pic. you said one pic. but in the code there are 3 pic. boxes.
anyway if you want to move a pic from one place to other do it like this
in the timer event put the code like this
picture1.left = picture1.left + 10
and do not change the interval in the code. set the interval property at design time itself to 100
Re: Using timers for "Image dragging"
Awesome,worked like a charm my friend.
Now,My only problem is I need to move it down aswell...Hard...But...X_x I'll try to find it myself.