by Adam Kachwalla (3 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 1st December 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This is a countdown timer using a ProgressBar. Example only.
API Declarations
'This is NOT for the Microsoft Forms 2.0 Object Library.
THERE ARE NO RESTRICTIONS FOR USE.
Static count
count = (count + 1)
ProgressBar1.Value = (ProgressBar1.Max - count)
If ProgressBar1.Value = 0 Then
Timer1.Enabled = False
'You can add code for what will happen when the countdown reaches zero.
End If
End Sub