OnPrint Method
TOC
Collapse the table of content
Expand the table of content

Control.OnPrint Method (PaintEventArgs)

 

Raises the Paint event.

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

Protected Overridable Sub OnPrint (
	e As PaintEventArgs
)

Parameters

e
Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs that contains the event data.

Exception Condition
ArgumentNullException

The e parameter is null.

If the UserPaint bit of the ControlStyles is set, you can override OnPrint to do layered painting. See SetStyle for more information.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft