TabControl.OnDeselecting(TabControlCancelEventArgs) TabControl.OnDeselecting(TabControlCancelEventArgs) TabControl.OnDeselecting(TabControlCancelEventArgs) TabControl.OnDeselecting(TabControlCancelEventArgs) Method

Definition

Raises the Deselecting event.

protected:
 virtual void OnDeselecting(System::Windows::Forms::TabControlCancelEventArgs ^ e);
protected virtual void OnDeselecting (System.Windows.Forms.TabControlCancelEventArgs e);
abstract member OnDeselecting : System.Windows.Forms.TabControlCancelEventArgs -> unit
override this.OnDeselecting : System.Windows.Forms.TabControlCancelEventArgs -> unit
Protected Overridable Sub OnDeselecting (e As TabControlCancelEventArgs)

Parameters

Remarks

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

The OnDeselecting method also enables derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnDeselecting(TabControlCancelEventArgs) in a derived class, be sure to call the base class's OnDeselecting(TabControlCancelEventArgs) method so that registered delegates receive the event.

Applies to

See also