Interval

Returns or sets the number of milliseconds between calls to a Timer control's Timer event.

Syntax

object.Interval [= milliseconds]

The parts of the Interval property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
milliseconds A numeric expression specifying the number of milliseconds, as described in Settings.

Settings

The settings for milliseconds are described in the following table.

Setting Description
0 (Default). Disables a Timer control.
1 to 65,535 Sets an interval (in milliseconds) that takes effect when a Timer control's Enabled property is set to True. For example, a value of 10,000 milliseconds equals 10 seconds. The maximum, 65,535 milliseconds, is equivalent to just over 1 minute.

Remarks

You can set a Timer control's Interval property at design time or run time. When using the Interval property, remember: