Hello everyone,
I have my problem in using timer in vb. I have aleady the value, all i want is my time will count down.
my sample code is this:
Dim datetime As DateTime
Private Sub ...
datetime.AddMinutes(MinuteBox.Text)
datetime.AddSeconds(SecondBox.Text)
datetime.AddTicks(1)
End Sub
Dim remaining As Integer 'unused variable
Private Sub ... Handles timer1.tick
Do Until datetime.Minute = 0
datetime.Second -= 1 '**i am not sure in this line, this is not a valid statement.**
Loop
End Sub