Answer the question
In order to leave comments, you need to log in
How to execute code at specific time?
var a = DateTime.Parse("17:45");
if (DateTime.Now == a);
{
MessageBox.Show("1");
}
Answer the question
In order to leave comments, you need to log in
DateTime date = DateTime.Parse("17:45");
Task.Delay(date - DateTime.Now ).ContinueWith(MessageBox.Show("1"));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question