How To Create a Timer Event Using the Windows API Functions (180736)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q180736 SUMMARY
This article shows you how to create a timer event using the SetTimer and
KillTimer Windows API functions. The article also includes a sample project
that demonstrates how to use these functions.
You can use these functions if you need to execute events at intervals
greater than what the Visual Basic Timer control allows. The Timer control
allows a maximum interval of slightly over a minute while these API
functions allow you to set an interval up to 24.86 days.
REFERENCES
For additional information about the SetTimer and KillTimer functions,
refer to the Platform SDK Product Documentation.
For additional information about the AddressOf operator, refer to the
Visual Basic Help.
Visual Basic Programmer's Guide, version 5.0; "Using the Timer Control"
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbAPI kbControl kbhowto KB180736 |
---|
|