Visual Basic Reference
Occurs when a preset interval for a Timer control has elapsed. The interval's frequency is stored in the control's Interval property, which specifies the length of time in milliseconds.
Private Sub object_Timer([index As Integer])
The Timer event syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|index||An integer that uniquely identifies a control if it's in a control array.|
Use this event procedure to tell Visual Basic what to do after each Timer control interval has elapsed. When you're working with the Timer event:
- The Interval property specifies the interval between Timer events in milliseconds.
- Whenever the Timer control's Enabled property is set to True and the Interval property is greater than 0, the Timer event waits for the period specified in the Interval property.