System.Windows.Forms.Control.Paint Event

Occurs when the control is redrawn.

Syntax

public event PaintEventHandler Paint

Remarks

The Control.Paint event is raised when the control is redrawn. It passes an instance of System.Windows.Forms.PaintEventArgs to the method(s) that handles the Control.Paint event.

When creating a new custom control or an inherited control with a different visual appearance, you must provide code to render the control by overriding the Control.OnPaint(PaintEventArgs) method. For more information, see Overriding the OnPaint Method and Custom Control Painting and Rendering.

For more information about handling events, see Consuming Events.

Requirements

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