ElementHost.OnPaintBackground(PaintEventArgs) ElementHost.OnPaintBackground(PaintEventArgs) ElementHost.OnPaintBackground(PaintEventArgs) ElementHost.OnPaintBackground(PaintEventArgs) Method

Definition

Paints the background of the control.

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ pevent);
[System.ComponentModel.Browsable(false)]
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent);
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (pevent As PaintEventArgs)

Parameters

pevent
PaintEventArgs PaintEventArgs PaintEventArgs PaintEventArgs

A PaintEventArgs that contains information about the control to paint.

Remarks

The OnPaintBackground method paints the parent control's background into an offscreen HBITMAP. This bitmap is used as the background in the hosted element to support transparency.

This method supports the Microsoft .NET infrastructure and is not intended to be used directly from your code.

Applies to

See also