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....
|