How do I make a countdown? - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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

  • KoyaxKoyax Posts: 10Member
    Visual Basic 2008 or 2006
Sign In or Register to comment.