OnPaintBackground Method

TabPage.OnPaintBackground Method (PaintEventArgs)

 

Paints the background of the TabPage.

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

protected override void OnPaintBackground(
	PaintEventArgs e
)

Parameters

e
Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs that contains data useful for painting the background.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft