Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Method

Definition

Raises the Paint event.

protected:
 virtual void OnPrint(System::Windows::Forms::PaintEventArgs ^ e);
protected virtual void OnPrint (System.Windows.Forms.PaintEventArgs e);
abstract member OnPrint : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPrint : System.Windows.Forms.PaintEventArgs -> unit
Protected Overridable Sub OnPrint (e As PaintEventArgs)

Parameters

Exceptions

Remarks

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

Applies to

See also