Provides data for the TabControl.Selecting and TabControl.Deselecting events of a System.Windows.Forms.TabControl control.
See Also: TabControlCancelEventArgs Members
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.