This Code allows you too countdown seconds and minutes but im not sure how to add hours or maybe even days to it:(
===========================================================================================
Imports System.Threading.Thread
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If InStr(timetowait.Text, ":") Then
Dim time() As String
time = Split(timetowait.Text, ":", , CompareMethod.Text)
countminutes.Text = time(0)
countseconds.Text = time(1)
Timer1.Interval = 1000
Timer1.Start()
Else
MsgBox("You have to insert like this 1:10")
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim minutes As Integer = countminutes.Text
Dim seconds As Integer = countseconds.Text
If minutes = 0 And seconds = 0 Then
MsgBox("Time Ended")
Timer1.Stop()
End If
If seconds = 0 Then
minutes -= 1
seconds += 60
End If
seconds -= 1
If minutes <> -1 Then
countminutes.Text = minutes
countseconds.Text = seconds
End If
End Sub
End Class
=========================================================================================if anyone can help me it would be appreciated:icon_cry: