joebob,
As far as I know, the Timer is not actually a control.
When you place a timer on the form, I think you are basically enabling the Timer event.
Then of course you add code to the timer event in your form.
If you want to use Timer functionality in your modules/classes, then I believe you can use the "Timer" function of the DateTime class. This returns a Single representing the number of seconds since midnight. Therefore you can use this in a loop to do something every X seconds.
Note:
Make sure you have a DoEvents in the loop somewhere to make sure you don't inadvertantly zap all the machines resources!
Code:
'The interval for the timer (in seconds).
Const INTERVAL = 10
'Stores the next time to fire.
dim fireTime as Single
'The terminator for the loop, set this to true to exit.
Dim exitLoop as Boolean
Do
'If we have hit or passed the fireTime
If Timer >= fireTime Then
'Set the next time to fire by adding the interval
fireTime = Timer + INTERVAL
'Add code that you want to do on each interval here
Else
'Do Nothing, good time to yield to the OS.
DoEvents
End If
Loop Until exitLoop = True
I hope this helps.
Best Regards,
Rob