Timer objects in a formless projectThe default Timer control which is supplied with VB6 requires a form. This makes it impossible to use in formless projects. There are numerous formless timer controls available. We recommend the freeware High-Performance Timer Objects supplied by the Common Controls Replacement Project. After downloading/installing the controls, basic usage is as simple as:
Set tmrTimer = New ccrpTimer ' create new timer
tmrTimer.Interval = lngIntervalms ' set timer interval in milliseconds tmrTimer.Enabled = True ' activate the timer Events are fired from the Timer event at the Interval specified. Author: ASAK Created: Oct 7 2005 (last modified Nov 30 2005) Categories: Visual Basic TechByte #48 Warning: By visiting this site and/or by using any information contained herein, you agree to the Techbytes.ca terms of use. Add a comment about this TechByteIf you wish to add a comment regarding this TechByte, please use the form below. Please note that by submitting comments using this form you are allowing all of the information submitted to be visible on this website. Any comments submitted using this form will only be shown on the website if they are approved by the administrators of this site. IF APPROVED, COMMENTS MAY TAKE SEVERAL DAYS TO BE POSTED. Other TechBytes: |
|

