Howdy, Stranger!

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


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 Member Posts: 10
    Visual Basic 2008 or 2006
  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    __ < /> free video tutorials and ebooks about [ Java MATLAB Delphi C# PL/SQL Perl Visual Basic .NET Objective-C JavaScript C Visual Basic Python Scratch R Ruby Go PHP C++ Swift Assembly ABAP Bash Hack COBOL Erlang VBScript LabVIEW Crystal Dart Ada Scheme Scala Logo Alice FoxPro SAS ML Awk Lua Apex Lisp Fortran Transact-SQL Rust Julia Clojure Prolog D Kotlin F# ] ____________

Sign In or Register to comment.