Results 1 to 4 of 4

Thread: [RESOLVED] Stoping the moving picture

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2010
    Posts
    55

    Resolved [RESOLVED] Stoping the moving picture

    Private intTime As Integer

    Private Sub cmdfire_Click()
    If img2.Left < 1200 Then
    tmr1.Enabled = False
    End If
    tmr1.Enabled = True


    End Sub

    Private Sub Form_Load()
    tmr1.Enabled = False

    End Sub

    Private Sub tmr1_Timer()
    img2.Move img2.Left - 20


    End Sub


    I have this picture moving left but i want it to stop at a certain time can someone please explain how this could be done.

    Thank you

  2. #2
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Stoping the moving picture

    Make this in tmr1u

    Code:
    Dim i as integer
    i = i + 1
    img2.Move img2.left - 20
    If i = 20 then
    tmr1.enabled = true
    tmr2.enabled = false
    end if
    Instead of the If i = 20, put it for the amount of time you need. Hope I helped!
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2010
    Posts
    55

    Re: Stoping the moving picture

    Thank you very much

  4. #4
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: [RESOLVED] Stoping the moving picture

    You are very welcome. Glad i could help.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

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