473,587 Members | 2,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reminder / Follow Ups Application

Present I am using Windows.Forms.T imer 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

Nov 15 '05 #1
2 1706
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

Nov 15 '05 #2
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

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9614
by: Mikey | last post by:
This sample code demonstrates how to send an email message using CDO and have it set the Outlook Importance property and the Outlook Follow Up reminder attributes in the recipient's InBox. The "Follow Up" reminder flag is set to one hour ago which causes the received message's From, Subject and Date to immediately display in red color in...
0
1255
by: Stephen Hynds | last post by:
Hi, I'm writing a VB app that sends mail to a number of users when an important deadline is approaching. I can get the mail to show up as high priority and I can even get it to have a follow up flag, but I cannot for the life of me get it to have a follow up time/reminder, flag due by time or whatever you want to call it. Can anyone...
9
2791
by: Phil G. | last post by:
Hi all, I would like to create a very simple 'lite' version of Outlook Calendar's reminder function. I will use a windows service that will read timedate stamps from a db and compare them to Now. This seems that it will create a lot of processor overhead in terms of 'how often shall I check the db?'. I wonder if I check it hourly and save...
1
3086
by: Jeremy Simpson | last post by:
Has anyone tried to set a reminder in MS Outlook from with Access? I want to, when a checkbox is ticked automatically set a reminder in access that takes information from the current record i.e "Required: <<Current Date>- Single Line Diagram for <<Site Name>> Many thanks in advance, Jeremy
5
5410
by: Ataana | last post by:
Hi I want to implement reminder application that pops up at the specified time. I think there would be some sort of timer that will check when a reminder is due and pop-up the reminders. The question is where and how should I implement the timer code so that it runs regardless of if any specific form is open or not. Regards Ataana
1
2276
by: THEAF | last post by:
OK, i've had quite a few problems with this form and again i have another one. i'm using vb6 and access. THIS IS MY FORM LOAD AND AFTER THE LOOP IS WHERE THE REMINDER CODE IS Private Sub Form_Load() ' Dim s() As String Dim ListTime As String Dim ListDate As String Dim i As Integer
3
2655
Shakss2
by: Shakss2 | last post by:
Hi, I have a application which creates a task in outlook on the click of a button. I have made set reminder true. It works fine when it tried on the desktop. But wne tried the same application via citrix, The task gets created but the reminder option is not getting checked (on the task screen) due to which the reminder does not popup.
0
811
by: Chris Calloway | last post by:
Just a reminder, we're at the two week warning on early bird registration for PyCamp: http://trizpug.org/boot-camp/2008/ Registration is now open for: PyCamp: Python Boot Camp, August 4 - 8 Plone Boot Camp: Customizing Plone, July 28 - August 1
0
766
by: Chris Calloway | last post by:
Final reminder, we're in the last two weeks of open registration for PyCamp, Plone Boot Camp, and Advanced Plone Boot Camp: http://trizpug.org/boot-camp/2008/ Registration is now open for: PyCamp: Python Boot Camp, August 4 - 8 Plone Boot Camp: Customizing Plone, July 28 - August 1
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.