473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

changing BackColor of TabControl

I have to change the BackColor of the unused part to the right of the tabs
in a TabControl.

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

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Rectangle rectangle = new Rectangle(0, 0, this.Width, this.Height);

SolidBrush brush = new SolidBrush(Color.Blue)

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 set the backgroundcolor of my TabControl without covering the
tabs?
does anybody have some experience with that kind of problem?

Any help will be greatly appreciated....

Nov 16 '05 #1
0 2833

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Wood | last post by:
Hi, All - I'd like to ba able to change the BackColor on the StatusBar and TabControl from it standard grey to white for a particular app. With all the Drawing capabilities in dotNet it must be...
0
by: Paiam Salavati | last post by:
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);...
1
by: Nick Zdunic | last post by:
The standard Tab Control in .NET doesn't have a BackColor property. I'd like to have the backcolor set to transparent. Set individual Tab Pages Backcolor property doesn't do the job either. ...
1
by: Iconoclast | last post by:
Hello friends, I am new to Vs.net and C# development environment... I wanted to know, how to change the background color of tabcontrol (which is set bydefault to systemcolor.control).. i want to...
3
by: Anson Poon | last post by:
Hello, I want to know if it's possible to set the backcolor or a TabControl (not the tabpage). Thank you. Anson
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
1
by: Bart Steur | last post by:
Question: Why can't you set the TabControl BackColor in Visual Basic 2005 XE? Any ideas? Regards Bart
1
by: Cartoper | last post by:
I am working in VS2008. I have a TabControl on a form. The background color of the TabControl is not the standard KnownColor.Control color, it is a lighter color. I have placed a TrackBar on...
0
by: Cartoper | last post by:
I am working in VS2008. I have a TabControl on a form. The background color of the TabControl is not the standard KnownColor.Control color, it is a lighter color. I have placed a TrackBar on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.