How do I make a countdown?

My question is how do I make a countdown like if I have a shareware program. I want a countdown from 15 seconds and I want the time on the caption how do I make the timer make a countdown and when the countdown is 0 the button will be enabled.

Please help me!!!!!!


  • Add a timer to your form. In the timer event use:

    Static TimeLeft as Integer

    TimeLeft = TimeLeft - 1

    Me.Caption = 16 + TimeLeft

    If Me.Caption = "0" Then

    Timer1.Interval = 0

    Command1.Enabled = True

    End If

  • Visual Basic 2008 or 2006
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion