Export (0) Print
Expand All

ElementHost.OnPaint Method

Raises the Paint event.

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

protected:
virtual void OnPaint (
	PaintEventArgs^ e
) override
protected void OnPaint (
	PaintEventArgs e
)
protected override function OnPaint (
	e : PaintEventArgs
)
Not applicable.

Parameters

e

A PaintEventArgs that contains the event data.

The ElementHost implementation of the OnPaint method forwards to the base class implementation.

Notes to Inheritors: Do not override this implementation of the OnPaint method. The ElementHost control manages the painting of its hosted element, and overriding OnPaint will cause unpredictable results.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft