Click here to Skip to main content
13,043,865 members (47,889 online)
Rate this:
Please Sign up or sign in to vote.

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

Posted 23-Apr-11 1:28am
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?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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!

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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100