Reminder / Follow Ups Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Present I am using Windows.Forms.Timer for reminder. But I want to sleep on events and when every event wake up they call my code. Please give the coding of the below example

for example : let us say I have three reminders..
one at 10am, one at 12am and one at 2pm same da
so my program starts at 9a
it goes through each event and finds out how much time it will take to hit this event( eventtime - current time
so let's say I created events in this orde
10am 2pm and 11am (better than 12
so my program creates first event and adds an entry in queue (which I'll explain
wake me up after (10 am - 9 am) 60 second
second event (2pm-9am) 300 second
and third event (11am-9am) 120 second
sleep on three events and when every event wake up they call my code and execute
 
Hi
you could use the timer to periodically .. let s say every hours get the
time "using System.DateTime.Now(); " to see if is time to execute your code
or not ... it is the right time then start executing your code...... hope
this would help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top