|
-
Aug 1st, 2011, 10:03 AM
#1
Thread Starter
Hyperactive Member
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.

How can I get rid of the grey edges?
Thanks.
Intermediate Level Programmer Extraordinaire 
-
Aug 1st, 2011, 10:26 AM
#2
Hyperactive Member
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
-
Aug 2nd, 2011, 09:41 AM
#3
Thread Starter
Hyperactive Member
Re: DrawItem Event in TabControl Doesn't Cover the Entire Header
Excellent link, thank you very much!
Intermediate Level Programmer Extraordinaire 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|