Click here to Skip to main content
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 2: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 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2014
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