Control::OnPrint Method (PaintEventArgs^)
.NET Framework (current version)
Raises the Paint event.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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
Available since 2.0
Show: