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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access