Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Jan 18, 2000

Setting Reminders

Question:
I am developing an application in VB which requires Reminders.

On the basis of dates input, if the current date goes past the date in the database it should show a reminder in the form of a Messagebox.

I think it will be in a timer event but I do not know how. Can you help me?

Answer:
Essentially, you need to check on a periodic basis that is greater than what the timer control can actually handle. The timer control can time approximately one minute (60000 milliseconds). If you have a lot of items, you might want to keep track of how many timer events have happened.

When you hit 60, that means that an hour has passed and you can check your reminders. If you only have a few reminders, it probably wouldn't hurt to check whenever the timer goes off. Either way will work, but you'll have to choose based on your application's needs.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date