CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Posts
    65

    How do I make the timer work?

    Hi,

    On my form, I have a button, a picture box and a timer.

    When I press the button, I want the timer to wait 5 seconds before showing the picture in the picture box (Picture1.Visible = True).

    I can`t seem to get the timer to work though.

    Any Quick Info on this

    Thanks

    Mark


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: How do I make the timer work?

    Option Explicit

    Private Sub Form_Load()
    Timer1.Interval = 5000
    Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Timer()
    Picture1.Visible = True)
    End Sub


    David Paulson


  3. #3
    Join Date
    Jul 2001
    Location
    Mumbai,India
    Posts
    382

    Re: How do I make the timer work?

    On Button click :

    timer.interval = 5000
    timer.enabled = true

    In Timer function :

    picture1.visible = true

    Regards,
    The Beret.


  4. #4
    Join Date
    Jun 2001
    Posts
    65

    Re: How do I make the timer work?

    Thanx!

    Mark


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

Featured