Properties
The timer control supports very few properties. Following
are the properties:
- Left and Top: Determines
the timer controls location.
- Enabled: Determines
the timer's activated state.
- Tag: The information
that you might want to include with the control.
- Index: determines
the control's subscript in a control array.
- Interval: It is the
number of milliseconds between Timer events.
If you set the Interval property to a value of 1000,
the timer events will occur every 1000 milliseconds,
or roughly once per second.
The timer control has some drawbacks also: The Interval
property can hold values only from 0 to 64,767. Therefore,
you can set a time interval that spans only about
65 seconds and no more.
The Timer control isn't actually extremely accurate. |
Events
The Timer control supports only a single event: The
Timer event. Therefore,
if your timer control is named tmrClock,
you'll write only a single event procedure for the
timer control: tmrClock_Timer().
|