System.Windows.Forms.TabControlCancelEventArgs Class

Provides data for the TabControl.Selecting and TabControl.Deselecting events of a System.Windows.Forms.TabControl control.

See Also: TabControlCancelEventArgs Members

Syntax

public class TabControlCancelEventArgs : System.ComponentModel.CancelEventArgs

Remarks

Use the TabControlCancelEventArgs.Action property to determine which event is occurring. This enables you to handle multiple event types with one event handler.

Use the TabControlCancelEventArgs.TabPage and TabControlCancelEventArgs.TabPageIndex properties to determine which System.Windows.Forms.TabPage the event is occurring for.

To cancel a tab change in a System.Windows.Forms.TabControl, set the System.ComponentModel.CancelEventArgs.Cancel property to true.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0