NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Timer.OnTimer

Raises the System.WinForms.Timer.Timer event.

[Visual Basic]
Overridable Protected Sub OnTimer( _
   ByVal e As EventArgs _
)
[C#]
protected virtual void OnTimer(
   EventArgs e
);
[C++]
protected: virtual void OnTimer(
   EventArgs* e
);
[JScript]
protected function OnTimer(
   e : EventArgs
);

Parameters

e
An EventArgs that contains the event data. This is always System.WinForms.Event.EMPTY.

Remarks

This method is called for each timer tick. It calls any methods that were added through AddOnTimer. If you are inheriting System.WinForms.App.Timer, you may override this method.

Raising an event invokes the event-handling method through a delegate. For an overview, see Delegates/EventModelTopic.

Notes to Inheritors: When overriding OnTimer in a derived class, be sure to call the base class's OnTimer method.

See Also

Timer Class | Timer Members | System.WinForms Namespace