README.md

December 5, 2022 ยท View on GitHub

Anouther Formless Timer

Description

This example shows a !completely! formless Timer alternative that only uses 2 API calls (SetTimer & KillTimer). This example also addresses some secuirity issues presented by the SetTimers CallBacks. I also defined all the exposed property descriptions for easy inclusion into your projects.

More Info

Interval Property as a Long value representing Milliseconds.

Enabled Property used to Start or stop the Timer (Not to faroff from the VB Timer Control)

The API is finiky, I crashed the VB IDE 3 times developing this tidbit until I got it stable. If you want to modify the code save often or the API will bite you.

Returns a 'Timer' Event

Some security issues that you will see in the code/comments

Submitted On2002-03-27 01:48:44
ByDane Jones
LevelIntermediate
User Rating4.7 (61 globes from 13 users)
CompatibilityVB 6.0
CategoryLibraries
WorldVisual Basic
Archive FileAnouther_F657673272002.zip

API Declarations

Private Declare Function SetTimer Lib "user32" _
   (ByVal hwnd As Long, _
   ByVal nIDEvent As Long, _
   ByVal uElapse As Long, _
   ByVal lpTimerFunc As Long) As Long
Private Declare Function KillTimer Lib "user32" _
   (ByVal hwnd As Long, _
   ByVal nIDEvent As Long) As Long