System.Windows.Forms.TabPage.OnPaintBackground Method

Paints the background of the System.Windows.Forms.TabPage.

Syntax

protected override void OnPaintBackground (PaintEventArgs e)

Parameters

e
A System.Windows.Forms.PaintEventArgs that contains data useful for painting the background.

Remarks

The system calls this method to paint the background of the System.Windows.Forms.TabPage. When the TabPage.UseVisualStyleBackColor and Application.RenderWithVisualStyles property values are both true and the TabControl.Appearance property of the parent System.Windows.Forms.TabControl is TabAppearance.Normal, this method paints the background using the current visual style. Otherwise, this method paints the background as usual.

Requirements

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