System.Windows.Forms.TabPage.BackColor Property

Gets or sets the background color for the System.Windows.Forms.TabPage.

Syntax

public override System.Drawing.Color BackColor { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The default value of the TabPage.BackColor property is the value of the Control.DefaultBackColor property unless the TabPage.UseVisualStyleBackColor and Application.RenderWithVisualStyles property values are both true and the TabControl.Appearance property of the parent System.Windows.Forms.TabControl has a value of TabAppearance.Normal, in which case the default value of the TabPage.BackColor property is System.Drawing.Color.Transparent. Child controls that you place on the System.Windows.Forms.TabPage inherit the TabPage.BackColor value by default, so this behavior causes the background of the child controls to render with the current visual style.

Changing the value of the TabPage.BackColor property automatically sets the TabPage.UseVisualStyleBackColor property to false. If you want the System.Windows.Forms.TabPage background to render using visual styles but you want the child controls to inherit a TabPage.BackColor value that you specify, set the TabPage.UseVisualStyleBackColor property after you set the TabPage.BackColor property.

Requirements

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