System.Windows.Forms.TabControl.Selected Event

Occurs when a tab is selected.

Syntax

public event TabControlEventHandler Selected

Remarks

When the current tab changes in a System.Windows.Forms.TabControl, the following events occur in the following order.

These events let you perform tasks such as canceling a tab change if a System.Windows.Forms.TabPage is in an invalid state or updating the state of a newly displayed System.Windows.Forms.TabPage.

The current tab changes when the user clicks a tab, when you call the erload:System.Windows.Forms.TabControl.DeselectTab or erload:System.Windows.Forms.TabControl.SelectTab method, or when you change the value of the TabControl.SelectedIndex or TabControl.SelectedTab property.

Requirements

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