संपादित करें

इसके माध्यम से साझा किया गया


Control.OnPaintBackground(PaintEventArgs) Method

Definition

Paints the background of the control.

protected:
 virtual void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ pevent);
protected virtual void OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent);
abstract member OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overridable Sub OnPaintBackground (pevent As PaintEventArgs)

Parameters

pevent
PaintEventArgs

A PaintEventArgs that contains information about the control to paint.

Remarks

The OnPaintBackground method enables derived classes to handle Windows background erase requests.

Notes to Inheritors

Inheriting classes should override this method to handle the erase background request from windows. When overriding OnPaintBackground(PaintEventArgs) in a derived class it is not necessary to call the base class's OnPaintBackground(PaintEventArgs).

Applies to

See also