473,395 Members | 1,504 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,395 software developers and data experts.

TabControl's background color

Hi,

I'm fighting with it for a while... How can I change this control's
background color (and only background color)? It should be easy and
straightforward but I guess it is not...

To be precised, I don't want to change TabPage's background :-/ What I
mean is the background before any TabPage is added.

Sorry for stupid explanation but I run out of ideas and want to avoid
creating colored panel on top of it until first tab is added.

Hope you have some ideas.

--
Greetings,

TroLoo
Nov 17 '05 #1
1 2898
BackColor is not supported by TabControl. To change it you must take
responsibilty of drawing the entire control since Paint and PaintBackground
events are not exposed. This is going to be a lot work. For a simple example
see the "A completely ownerdraw Tabcontrol" example on my site
(http://dotnetrix.co.uk/tabcontrols.html )

As an alternative you may like to use TabControlEX instead which has had all
the work done already and adds one or two other frequently requested
features.
http://dotnetrix.co.uk/controls.html

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"TroLoo" <tr****@gmail.com.REMOVE.IT> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
Hi,

I'm fighting with it for a while... How can I change this control's
background color (and only background color)? It should be easy and
straightforward but I guess it is not...

To be precised, I don't want to change TabPage's background :-/ What I
mean is the background before any TabPage is added.

Sorry for stupid explanation but I run out of ideas and want to avoid
creating colored panel on top of it until first tab is added.

Hope you have some ideas.

--
Greetings,

TroLoo

Nov 17 '05 #2

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

Similar topics

0
by: Noozer | last post by:
Is it possible to change the background color of the tabs and tab background area int a tabControl? Even a reference to the API would be welcome. Thx!
3
by: rossum | last post by:
I have a TabControl with a lot of tabs in it. Since it is sometimes difficult to tell which tab is currently active (all the pages have the same layout) I want to be able to highlight which tab is...
4
by: Noozer | last post by:
I'm using a tabControl on one of the forms of my MS Access database. The grey bar looks pretty bad on my form. Is there any way to change the colour of the tabs or the tab background for the...
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...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
1
by: HS1 | last post by:
Hello I can change the background of each page of a TabControl but cannot change the background (BackColor) of this tabcontrol. I did not see it in the properties page. If you know how to...
2
by: matt | last post by:
Hi, i'm trying to change the color of the background of a tabcontrol. i put images on the buttons and changed the background of each tabpage, and set the background color or the main tab, but it...
3
by: Jean Paul Mertens | last post by:
Hello, Is there a way to change the background color of the tabs in a tabcontrol (there where the name of the tab is and where you click to change to an other tab) I don't see any property or...
2
by: Jamey | last post by:
Ran into an inconvenience with TabControls yesterday. I found a partial explanation from Allen Browne on the MS message boards explaining when it happens, but not why. I thought Stephen Lebans...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.