|
-
Feb 2nd, 2006, 04:45 AM
#1
Thread Starter
Lively Member
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
i got kicked out of barnes and noble once for moving all the bibles into the fiction section"--FD
Of course I'm a real doctor! I'll draw up my own diploma some time to prove it!-Dr Dis
-
Feb 2nd, 2006, 04:57 AM
#2
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
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Feb 2nd, 2006, 06:24 AM
#3
Thread Starter
Lively Member
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.
i got kicked out of barnes and noble once for moving all the bibles into the fiction section"--FD
Of course I'm a real doctor! I'll draw up my own diploma some time to prove it!-Dr Dis
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
|