PC Review


Reply
Thread Tools Rate Thread

Changing BackColor of TabControl

 
 
Paiam Salavati
Guest
Posts: n/a
 
      25th May 2004
I have to change the BackColor of a TabControl.

therefore I have overriden the onPaint-Method of TabControl like this:

Rectangle rectangle = new Rectangle(0, 0, this.Width, this.Height);
SolidBrush brush = new SolidBrush(Color.YellowGreen);

e.Graphics.FillRectangle(brush, rectangle);




the problem is now, that the tabs in my TabControl are not visible anymore,
because they have also the color YellowGreen.

How can I make the tabs of my TabControl visible or how can I change their
color?

does anybody have some experience with that kind of problem?

Any help will be greatly appreciated....


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tabcontrol BackColor Bart Steur Microsoft VB .NET 1 21st Nov 2007 02:58 PM
changing BackColor of TabControl Paiam Salavati Microsoft Dot NET Framework Forms 2 26th May 2004 04:06 PM
changing BackColor of TabControl Paiam Salavati Microsoft C# .NET 0 26th May 2004 08:19 AM
changing BackColor of TabControl Paiam Salavati Microsoft Dot NET Framework 0 26th May 2004 08:17 AM
Changing the BackColor of the TabControl Peter Wood Microsoft Dot NET 1 30th Jul 2003 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 PM.