??? 07/26/07 17:27 Read: times Msg Score: -2 -2 Off-Topic |
#142375 - VB6 Timer |
Jon Ledbetter this question is for you.
I need to set the timer in visual basic so that it executes an event every three minutes. In this case I need to update the time on a label. But it is not working. I tried to use some of your sample code, but I could not follow it completely. What could be wrong with this code? Thanks Here is what I have so far: Dim Minutes As Integer Minutes = 0 Do Me.Interval = Timer.Interval + 1 ' Interval is set to 0. If Me.Interval = 60000 Then ' 1 minute Minutes = Minutes + 3 If Minutes = 1 Then Label1.Caption = "The time is " + Format(Now, "long Time") Minutes = 0 End If 'Else End If Loop End Sub |
Topic | Author | Date |
VB6 Timer | 01/01/70 00:00 | |
I've got it![]() | 01/01/70 00:00 |