Hi all. I am trying to figure something out, I want to raise an event when the time and date in dateTimePicker1 is equal to DateTime.Now (Current date and time). Ex:
If user sets date and time using the dateTimePicker1 control, a messagebox will be displayed when the current date and time is equal to the date and time specified by the user in the dateTimePicker1 control.
Here's what I have right now (it ain't workin'):
if( dateTimePicker1.Value == DateTime.Now )
{
MessageBox.Show("Alert!");
}
else
{
Application.DoEvents();
}
Any help at all will be greatly appreciated! Thanks in advance!
regards,
jt
If user sets date and time using the dateTimePicker1 control, a messagebox will be displayed when the current date and time is equal to the date and time specified by the user in the dateTimePicker1 control.
Here's what I have right now (it ain't workin'):
if( dateTimePicker1.Value == DateTime.Now )
{
MessageBox.Show("Alert!");
}
else
{
Application.DoEvents();
}
Any help at all will be greatly appreciated! Thanks in advance!
regards,
jt