Click here to Skip to main content
11,716,938 members (85,942 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ADO.NET Application
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 23-Apr-11 1:28am
Mohit3464
Comments
Ankur\m/ at 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
good
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
  Permalink  
Rate this: bad
good
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!

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 659
1 F-ES Sitecore 260
2 Maciej Los 185
3 OriginalGriff 175
4 Richard MacCutchan 140
0 Sergey Alexandrovich Kryukov 1,029
1 Maciej Los 464
2 Richard MacCutchan 430
3 CHill60 415
4 OriginalGriff 415


Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2015
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