473,496 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Tabcontrol loses its back color

Hi, I have a VB.NET 2005 application with a standard tabcontrol on it. The
application has the 'VisualStyles' enabled giving it an 'XP' look. For some
reason, the back color of this tabpane has suddenly changed to 'white'. It
used to be the standard 'control grey' color. The XP syle hasn't changed
though, just the color. This is strange because the tab control doesn't even
have a 'back color' property as far as I can see.

Some details:
- The application was converted from the 2003 format, although it has
behaved okay for a long time.
- The problem seems to have occured at some point after I added a third
party dll reference, although I have used this dll before and it should in
know way influence my control styles.
- Turning VisualStyles off returns the tab control to the standard grey
control color, turning it on again makes it go back to white.

Anybody know what has gone wrong or how to fix this?

Regards,

C. Hughes
Oct 2 '06 #1
1 1653
On Mon, 2 Oct 2006 10:00:02 -0700, C. Hughes <CH*****@discussions.microsoft.com>
wrote:
>Hi, I have a VB.NET 2005 application with a standard tabcontrol on it. The
application has the 'VisualStyles' enabled giving it an 'XP' look. For some
reason, the back color of this tabpane has suddenly changed to 'white'. It
used to be the standard 'control grey' color. The XP syle hasn't changed
though, just the color. This is strange because the tab control doesn't even
have a 'back color' property as far as I can see.

Some details:
- The application was converted from the 2003 format, although it has
behaved okay for a long time.
- The problem seems to have occured at some point after I added a third
party dll reference, although I have used this dll before and it should in
know way influence my control styles.
- Turning VisualStyles off returns the tab control to the standard grey
control color, turning it on again makes it go back to white.

Anybody know what has gone wrong or how to fix this?

Regards,

C. Hughes

Well, I had a similar event happen a few weeks ago except just the opposite. The
default TabControl is default VisualStyle enabled. The TabContol BackColor defaults
to the current system "Window" color. TabPages BackColor, by default, are
Color.Transparent,hence, you are supposed to see the white color. In my case, one of
the TabPages changed from Color.Transparent to the system control grey color for no
apparent reason, but as I recall, the problem appeared to be that a line of code in
the designer.vb had changed (for no apparent reason) changing the color from
Color.Transparent to the System control grey.

In your case, it would seem that if you want the System Control Grey, just change the
back color choice on the TabPages.
Gene
Oct 3 '06 #2

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

Similar topics

2
2537
by: Steve Amey | last post by:
Hi all I want to be able to prevent a particular tab from being selected at run-time, how would I go about doing that? At the moment, I have created a custom control and inherited the...
1
7633
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to...
1
263
by: afsheen | last post by:
Hi iam using a tabcontrol in vs.net and wanted to know that could i shift from one tabpage to another by pressing the tab keys when the last control of that tab page loses focus thanks
5
2183
by: Alien2_51 | last post by:
I have a problem with a ListBox control that is on a TabControl, it seems to be forgetting which items are selected in the list when I tab off the current tab, here's my winform code... I even...
5
3321
by: Zadkin | last post by:
Does anyone know, if it's possible to set the orientation of the tabpagebuttons to horizontal instead of vertical when the alignment property of my tabcontrol is set to left or right? Thanks in...
2
1882
by: Aspnot | last post by:
I have a TabControl that is on a form that is bound to a DataSet. I bind the dataset to the form in the Form_Load event. The TabControl has 2 TabPages. The first TabPage contains a button and a...
0
1034
by: C. Hughes | last post by:
Hi, I have a VB.NET 2005 application with a standard tabcontrol on it. The application has the 'VisualStyles' enabled giving it an 'XP' look. For some reason, the back color of this tabpane has...
0
1055
by: samadams_2006 | last post by:
Hello, I have a VB.NET Form which has a System.Windows.Forms.TabControl on it. This TabControl has 5 Tabs on it. On each tab, I have various textboxes, option boxes, radio boxes, etc. I would...
0
1400
by: bertie78 | last post by:
Hi all, New poster here! I'm having some difficulty updating a tabcontrol cross-threads. The general idea is : the main thread is the owner of the tab control and the form controls. However, due...
0
7120
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
7160
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
7196
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
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
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,...
1
4897
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.