I am try to create a couter that will show seconds and minutes. I need the counter to start at 0 seconds and 0 minutes. I made a label to display the the counter and named it Label1. I also have the timer object called Timer1. I think I might have got the timer to count but it did show up in the label. I told the timer to display in Label1 and made sure that Label1 was visible but it still doesn't work.
Below is my code that I've entered. If someone could please help me, it would be greatly appresiated. I really need this to work.
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim counter As Decimal
counter = 0.0
If Label1.Text = "" Then
Timer1.Enabled = True
Do
counter = counter + 1
Loop While counter > 0
Label1.Text = counter
Else
Label1.Text = "Done"
End If
End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
Label1.Visible = True
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 1000
Label1.Text = ""
End Sub
End Class