Using the DrawMode Property
The DrawMode property is implemented by many Windows Forms controls. It dictates the method by which the control is rendered on the surface of a form or within another container control. Three different drawing modes are available:
DrawMode.Normal— This mode is the default. When a control is set to this drawing mode, it will render itself according to the properties of the control using its default display. Every element in this control is drawn by the operating system, and each element within the control is a uniform size.
DrawMode.OwnerDrawFixed— This mode will override the default drawing behavior, allowing manual drawing of each element. Each element will, however, be assumed to be the same size.
DrawMode.OwnerDrawVariable ...
Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.