System.Windows.Forms.Timer.Enabled Property

Gets or sets whether the timer is running.

Syntax

[System.ComponentModel.DefaultValue(false)]
public virtual bool Enabled { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The timer is not subject to garbage collection when the value is true.

Calling the Timer.Start method is the same as setting Timer.Enabled to true. Likewise, calling the Timer.Stop method is the same as setting Timer.Enabled to false.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0