Hey guys, I'm working on a poker clock for fun just for me and some friends, and have a form with 2 textboxes and a button. The user enters a time in minutes in the 2nd textbox, and presses the button, and it displays the time in Hours:Minutes:Seconds
format, centered in the first textbox. That works fine, now I just need to know how to make the time in the first textbox start counting down. I haven't done any programming in like 3 years, so I have no clue how to do the counting down part, but from looking at other posts, I think I need to use DateTime, but just unsure of how to do it. Here's the code I have so far:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ts1 As TimeSpan
Dim temp As Double
Dim s As String
temp = Val(TextBox2.Text)
ts1 = TimeSpan.FromMinutes(temp)
s = ts1.ToString()
TextBox1.Text = s
End Sub
P.S. I plan to use a timer, and enter the code for the countdown in the tick event. Any help is appreciated, thanks