|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Tabcontrol loses its back colorapplication 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 On Mon, 2 Oct 2006 10:00:02 -0700, C. Hughes <CHug***@discussions.microsoft.com>
wrote: Show quoteHide quote >Hi, I have a VB.NET 2005 application with a standard tabcontrol on it. The Well, I had a similar event happen a few weeks ago except just the opposite. 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 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
Q: closing forms
CURRENT INDEX of Iteration on ILIST collection ? 1.1 equivalent for Drawing.Icon.ExtractAssociatedIcon? Accessing the Class Name of a Shared Method Writing Custom DLLs in VB.net 2 Help with using bits in an integer Strings, a couple of questions like difference between += and &= new form use try catch to check a text box copy and paste into webbrowser |
|||||||||||||||||||||||