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 );
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.