Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello

anyone can tell me How to set time for reminder alert on every month in ADO.NET Window Application with C#. i stuck this problem

Thanks
Posted
Comments
Ankur\m/ 23-Apr-11 7:40am    
Not clear what you want. Have a time saved in database. Do you want to show an alert when that time is reached?

If your application knows what day of the month you want the alert to show on and your application is one where it will be started and stopped daily then simply check what day of the month it is to what day you wanted the alert every time the application is started. If its greater than or equal to the day you wanted, show the alert.

If however, your program will be started and then not stopped for months you would have to program into say one of you programs update methods some code that checks the day of the month and do the same as above. An alternative method is to use a timer but those tend to be used for short, few millisecond periods of time. Setting one month in milliseconds seems a little ridiculous... :P
 
Share this answer
 
Earlier I could not get what you tried to ask but on second thought, it sounds like you are in a need of Windows Service!

Sample:
Simple Windows Service which sends auto Email alerts[^]

MSDN: Details about Windows Service:
Introduction to Windows Service Applications[^]

For more details, look here:
Simple Windows Service Sample[^]
Your first C# Web Service[^]
Windows Services in Action I[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900