Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
When you set the DrawMode property to OwnerDrawFixed, the TabControl raises the event whenever it needs to paint one of its tabs. To customize the appearance of the tabs, provide your own painting code in a handler for the event.
The TabControl does not support variable tab sizes with owner drawing.
For more information about handling events, see Handling and Raising Events.
The following code example creates a TabControl with one TabPage. This example declares an event handler that is used to draw a string and Rectangle on the tab of tabPage1. The event handler is bound to the DrawItem event.