0

Anyone know how to implement a timer code? What do i have to do in order to implement a timer? And the timer is one minute and then the vb program continues.

thank you so much.

4
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by KhairilSyahrin
0

Here is one example of Timer code.

Private Sub tmrClock_Timer()
lblClock.Caption = Format(Date, "MMMM DD, YYYY") & vbNewLine & Time
End Sub

Set the interval to 1000 so that your task iss performed every second.
Hope this helps

0

try this

Private Sub Timer1_Timer()
      Text1.Text = Time
End Sub

set the interval = 1000

Edited by abu taher: n/a

0

Kin and Abu are talking about using the intrinsic timer control and not the SetTimeEvent API. Also, their values of 1000 to set its interval property, well it only equals 1 second. If you want one minute like you originally said, you will need to set its interval to 60000...

Good Luck

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.