Results 1 to 9 of 9

Thread: stopping moving pictures [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    Propped up at a PC near you...
    Posts
    194

    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
  •  



Click Here to Expand Forum to Full Width