System.Windows.Forms.Timer.Tick Event

Occurs when the specified timer interval has elapsed and the timer is enabled.

Syntax

public event EventHandler Tick

Remarks

Calling the erload:System.Diagnostics.Debug.Assert method on the System.Diagnostics.Debug class from within the Timer.Tick event may not behave as expected, as displaying the assertion dialog box may cause Windows to raise the Timer.Tick event repeatedly. We recommend that you refrain from testing assertions within this event, and use the erload:System.Diagnostics.Debug.Write, erload:System.Diagnostics.Debug.WriteIf, erload:System.Diagnostics.Debug.WriteLine, or erload:System.Diagnostics.Debug.WriteLineIf methods instead.

For more information about handling events, see Consuming Events.

Requirements

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