Windows Develop Bookmark and Share   
 index > Windows Forms General > TabControls
 

TabControls

Hi Everyone,
   this might seem a bit stupid but can anyone tell me how to change the background (colour or image) of a tab control - not a tab panel but the actual control.

I'm going nutz here thinking that I'm being a bit dense although I can't find any reference to doing it.

thanks,
Ed.
EdWallace  Friday, October 21, 2005 2:31 PM

I'm afraid that the only way I found was to set the DrawMode property on the tab control to OwnerDrawFixed and then implement the DrawItem method to color the tabs as you desire.

Sorry I couldn't be of more help.

BJohnson  Sunday, October 23, 2005 3:02 PM
I've moved this thread to the Windows Forms General group from the C# Language group, as it's more to do with Windows Forms than C# itself.

Jon

Jon Skeet  Wednesday, October 26, 2005 10:46 PM
I'm not sure exactly what you mean, but do the tips on my site help at all?
http://www.dotnetrix.co.uk/tabcontrols.html
Mick Doherty  Wednesday, October 26, 2005 11:52 PM

You can use google to search for other answers

Custom Search

More Threads

• Relative paths
• Changing components modifier's property to static
• How to disable right click in textbox..
• Set a Text of a RichTextBox with Key Strokes
• listbox issues
• I get this wired effect in my tabs.
• Exception from HRESULT: 0x8007007e
• WebBrowser control and new window
• Disable Tree view checkbox
• Best way to capture changes made by PropertyGrid?