System.Windows.Forms.ControlPaint Class

Provides methods used to paint common Windows controls and their elements. This class cannot be inherited.

See Also: ControlPaint Members

Syntax

public sealed class ControlPaint

Remarks

The methods contained in the System.Windows.Forms.ControlPaint class enable you to draw your own controls or elements of controls. You can control the drawing of your own controls if the ControlStyles.UserPaint bit is set to true for the control. You can get or set the style bits by calling the Control.GetStyle(ControlStyles) or Control.SetStyle(ControlStyles, bool) methods. You can set multiple style bits for any control. The System.Windows.Forms.ControlStyles enumeration members can be combined with bitwise operations.

Requirements

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