System.Windows.Forms.Control.OnPrint Method

Raises the Control.Paint event.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual void OnPrint (PaintEventArgs e)

Parameters

e
A System.Windows.Forms.PaintEventArgs that contains the event data.

Remarks

If the UserPaint bit of the System.Windows.Forms.ControlStyles is set, you can override Control.OnPrint(PaintEventArgs) to do layered painting. See Control.SetStyle(ControlStyles, bool) for more information.

Requirements

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