Szerkesztés

Megosztás a következőn keresztül:


Timer.OnTick(EventArgs) Method

Definition

Raises the Tick event.

protected:
 virtual void OnTick(EventArgs ^ e);
protected virtual void OnTick (EventArgs e);
abstract member OnTick : EventArgs -> unit
override this.OnTick : EventArgs -> unit
Protected Overridable Sub OnTick (e As EventArgs)

Parameters

e
EventArgs

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

Remarks

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

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

Notes to Inheritors

When overriding OnTick(EventArgs) in a derived class, make sure that you call the base class's OnTick(EventArgs) method.

Applies to