|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
countdown timer in VB
Hi friends,
I want one countdown timer in VB. It should work from 15 seconds to 0 seconds and when a button is clicked it should again start from 15 seconds only. Please help |
|
#2
|
||||
|
||||
|
I have solved it. this is the code
Private Sub Timer2_Timer() seconds = seconds - 1 If seconds >= 0 Then Label36.Caption = "00:00:" & seconds End If End Sub In command button seconds = 15 |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > countdown timer in VB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|