Q

How can I write a real-time clock function for VB program?

How can I write a real-time clock function (date & time) to activate a delay interval to my VB program?
The easy thing is to use the Timer OCX supplied with Visual Basic. That has around 500 millisecond accuracy. To get a more accurate timer, you're going to have to use the Win32 multimedia timers directly from Visual Basic. Search MSDN Online as there are numerous examples of using these APIs you can find.
This was first published in May 2002

Dig deeper on Windows Operating System Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close