Provides methods used to paint common Windows controls and their elements. This class cannot be inherited.
See Also: ControlPaint Members
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.