|
-
Dec 26th, 2002, 05:59 AM
#1
Thread Starter
Addicted Member
stopping moving pictures [Resolved]
2 Questions:
1)
I have a picture that moves across the form. How do I stop it when it gets to a specific point on the form.
<code>
Private Sub Timer1_Timer()
Static lLeftPos As Long
lLeftPos = Picture1.Left + 10
If (lLeftPos + Picture1.Width) > Me.ScaleWidth Then lLeftPos = 0
Picture1.Left = lLeftPos
End Sub
</code>
2) I've sussed out how to make it go in the opposite direction by changing + to - , but how would I get it to move up or down the form?
Any ideas appreciated
Last edited by mbonfyre; Dec 30th, 2002 at 05:25 PM.
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
|