N
Nick T
Hi,
Been trying to solve this one for days now:
I have a text box (called Timer1) on my form which i want to use as a
countdown timer.
The defult value for 'Timer1' is set to 10, so that when the form opens, the
'Timer1' starts to count down from 10 (in seconds).
My forms timer interval is set to 1000, and in the ontimer event, of my
form, i have:
Private Sub Form_Timer()
If Me.Timer1 = 0 Then
Else
Me.Timer1 = Me.Timer1 - 1
End If
If Me.Timer1 = 0 Then
Me.Text4 = "Check Required"
Me.Text4.BackColor = vbRed
End If
This code works well, however all i want to do is have the amount of time as
displayed in my text box (Timer1) to display in hh,mm,ss. At the moment, if
i want my 'Timer1' to allow 1.5minutes before me.textbox4 = "Check Required"
etc, then i have to set my defult value for 'Timer1' to 90 (this being
seconds), and it counts down from 90. Can i make it display as 00:01:30 ??
Any suggestions appreciated!
Thanks a lot.
Been trying to solve this one for days now:
I have a text box (called Timer1) on my form which i want to use as a
countdown timer.
The defult value for 'Timer1' is set to 10, so that when the form opens, the
'Timer1' starts to count down from 10 (in seconds).
My forms timer interval is set to 1000, and in the ontimer event, of my
form, i have:
Private Sub Form_Timer()
If Me.Timer1 = 0 Then
Else
Me.Timer1 = Me.Timer1 - 1
End If
If Me.Timer1 = 0 Then
Me.Text4 = "Check Required"
Me.Text4.BackColor = vbRed
End If
This code works well, however all i want to do is have the amount of time as
displayed in my text box (Timer1) to display in hh,mm,ss. At the moment, if
i want my 'Timer1' to allow 1.5minutes before me.textbox4 = "Check Required"
etc, then i have to set my defult value for 'Timer1' to 90 (this being
seconds), and it counts down from 90. Can i make it display as 00:01:30 ??
Any suggestions appreciated!
Thanks a lot.