473,815 Members | 3,945 Online
Bytes | Software Development & Data Engineering Community
+ 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 1676
On Mon, 2 Oct 2006 10:00:02 -0700, C. Hughes <CH*****@discus sions.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.Transpare nt,hence, you are supposed to see the white color. In my case, one of
the TabPages changed from Color.Transpare nt 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.Transpare nt 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
2557
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 TabControl. I then override the WndProc method and trap the WM_NCHITTEST message (I don't know if this is the correct message to watch out for). I need to check to see if the tab that they are clicking on is Enabled or
1
7654
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 it the TabPage created in step 1. I don't want to draw the TabPage on the Tabcontrol in design mode, but to have a few TabPage controls that I candynamicaly load to the TabControl at runtime. Thanks
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
2202
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 added a click event handler that resets the selected items based on whats in the collection it is data bound to... I'm baffled, pounding my head against the wall, it's not working... Please help... I tried posting the code but it was too long,...
5
3353
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 advance Zadkin
2
1900
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 textbox. Scenario 1: I call BindingContext(ds.TableName).AddNew(), then I click the button and that populates some text into the textbox on the first tab. Then I switch over to Tab2 and back to Tab1. The text that was programatically inserted...
0
1044
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 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:...
0
1078
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 like to have the ability to save the focus on a particular control, so that when I go to another tab, then back to the same tab, the control I left will still be the highlighted control. For example, if I'm on the "City" Textbox on the...
0
1421
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 to the vast amount of data to populate listviews within the tabs, I have created a worker thread (an implementation of a BackgroundWorker) to form the data and populate a tabcontrol 'offline', so that it doesn't interfer with (i.e freeze) the UI. ...
0
10408
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10426
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9225
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5708
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
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 we have to send another system
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.