The code: Public Class Form1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim a As String = My.Computer.Clock.LocalTime.Hour Dim t As String = My.Computer.Clock.LocalTime.Minute Dim r As String = My.Computer.Clock.LocalTime.Second If t < 10 = ("0") Then Label1.Text = a + ":" + t + ":" + r End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Start End Sub End Class
Oh the enthusiasm!
Sajmonwins 2 months ago
didnt work!
123LeoMarion 2 years ago
cipryanhos 3 years ago
didnt work. rubbish tutorial
olivetti260398 3 years ago
Thank you very much for the tutorial. Five Stars! I undertand everything except the if statement. You couldnt explain what that does could you?
spikester3612 3 years ago
just forget the if statement. i didn't work. but the clock it self work
stiantofte 3 years ago