System.Windows.Forms.TabPage.VisibleChanged Event

Occurs when the value of the TabPage.Visible property changes.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.ComponentModel.Browsable(false)]
public event EventHandler VisibleChanged

Remarks

The TabPage.Visible property is not meaningful for this control, although you can change its value and handle the TabPage.VisibleChanged event to detect the change.

To hide a tab in a System.Windows.Forms.TabControl, you must remove it from the control's TabControl.TabPages collection.

Requirements

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