Hello! Is there any way to check date and hour without using two Timers?
Right now i have this for the date:
And for the time I don't know how to do it.... How can I do this using a Background Worker?Code:Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Timer1.Stop() If Date.Today = My.Settings.SelectedDate Then 'Do Something End If End Sub
Thanks in advance!
PS: the Timer1.Interval = 3600000 miliseconds... That's one whole hour.
PS (again): I thought about setting the Timer1 interval to 60000miliseconds, so that it would check the time everysingle step of the way (or maybe 10 minutes...), but I don't want the app to lag, so... How can i implement a Background Worker?





Reply With Quote