1 Attachment(s)
DrawItem Event in TabControl Doesn't Cover the Entire Header
I'm using a TabControl and have overridden the DrawItem event to produce my own background and foreground colors for the header text. It looks good but there's still grey color around each header. I thought maybe the Padding property could be set to (0,0) but that seemed to have no effect.
Here is a screenshot.
Attachment 85139
How can I get rid of the grey edges?
Thanks. :)
Re: DrawItem Event in TabControl Doesn't Cover the Entire Header
Hi Neef,
Here is a good link to OwnerDraw examples and source code for the TabControl: http://dotnetrix.co.uk/tabcontrol.htm
Hope this helps :)
Re: DrawItem Event in TabControl Doesn't Cover the Entire Header
Excellent link, thank you very much!