System.Windows.Forms.Control.OnPaintBackground Method

Paints the background of the control.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual void OnPaintBackground (PaintEventArgs pevent)

Parameters

pevent
A System.Windows.Forms.PaintEventArgs that contains information about the control to paint.

Remarks

The Control.OnPaintBackground(PaintEventArgs) method enables derived classes to handle Windows background erase requests.

Requirements

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