VB Timer Tutorial

Published: 28 January 2009
on channel: Mixria
10,692
7

How to make a Timer

The code:

Public Class Form1
Dim m As String
Dim s As String

Private Sub Form1_Load...
Timer1.Enabled = True
Timer1.Interval = 1000
Timer1.stop()
End Sub

Private Sub Timer1_Tick...
s = s + 1

If s = 60 Then
s = 0
m = m + 1
End If

Label.Text = m + ":" + s
End Sub

Private Sub Button1_Click...
Timer1.start()
End Sub
End Class


On this page of the site you can watch the video online VB Timer Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Mixria 28 January 2009, share the link with friends and acquaintances, this video has already been watched 10,692 times on youtube and it was liked by 7 viewers. Enjoy your viewing!