System.Windows.Forms.Timer.OnTick Method

Raises the Timer.Tick event.

Syntax

protected virtual void OnTick (EventArgs e)

Parameters

e
An EventArgs that contains the event data. This is always EventArgs.Empty.

Remarks

This method is called for each timer tick. It calls any methods that are added through Timer.Tick. If you are inheriting from System.Windows.Forms.Timer, you can override this method.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

Requirements

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