Timer.OnTick(EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.