ElementHost.OnPaintBackground Method (PaintEventArgs)

 

Paints the background of the control.

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

[BrowsableAttribute(false)]
protected override void OnPaintBackground(
	PaintEventArgs pevent
)

Parameters

pevent
Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs that contains information about the control to paint.

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.

.NET Framework
Available since 3.0
Return to top
Show: