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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date