This documentation is archived and is not being maintained.

Timer.Start Method

Starts raising the Elapsed event by setting Enabled to true.

[Visual Basic]
Public Sub Start()
[C#]
public void Start();
[C++]
public: void Start();
[JScript]
public function Start();

Remarks

If Enabled is set to true and AutoReset is set to false, the Timer raises the Elapsed event only once, the first time he interval elapses. When Enabled is true and AutoReset is true, the Timer continues to raise the Elapsed event on the specified interval.

You can also start timing by setting Enabled to true.

Note   If AutoReset is false, the Start method must be called in order to start the count again.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Timer Class | Timer Members | System.Timers Namespace | Interval | AutoReset | Enabled | Stop | Elapsed

Show: