Reminder
-
i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.
If the program is not running it can't check time and display pop-up
-
i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.
You can either use
SchTasks
) to schedule the start-up of your application at givent time or write you own service to do that. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
You can either use
SchTasks
) to schedule the start-up of your application at givent time or write you own service to do that. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.
Add a timer, handle its Tick event, compare DateTime.Now.Hours to 1 or 13 and show a MessageBox. If it your timer continues to fire Tick events when the MessageBox is still displaying (while you are sleeping for example ;) ) then you should create a custom Message Box from Form class and store a reference to it in you application like: Reminder : Form { } MyApplication : Form { Reminder reminderForm = null; myTime_Tick(...) { if(reminderForm != null && !reminderForm.Disposing) { reminderForm.Dispose(); reminderForm = null; } else { reminderForm = new ReminderForm(); reminderForm.Show(); } } } or you should be able to just hide and show the reminder form instead of disposing and recreating it.