Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1745
Tab color is odd on WinXP with Office2003 ViewStyle
posted

I allow the user to select between 3 ViewStyles (Office2000/2003/2007) and the tabs look good in all 3 modes if I have my Windows Display settings set to 'Windows Classic'.

If the Display is set to 'Windows XP' (It is missing from my system [!] but I know it is called something like that - The problem was reported to me by someone else.) however the Office2003 style causes it to display all tabs with the same color making it difficult to determine which is the active tab. The displayed color also looks completely wrong - it is not close to any color normally used in your controls. 
(Note that it still looks good with the Office2000/2007 viewstyles.)

I am using the 'PropertyPageSelected' style setting on the tabs.

I tried to obtain the backcolor of the ClientArea but I can only find the 'ClientAreaAppearance' which tells me that the color is (0,0,0,0) since I have not set a color. I need to get the 'resolved' backcolor of the client area so that I can set the ActiveTabAppearance to match. Is there any way to get this?

Is there any way to persuade the tab control to pick a more logical color for the tabs. (Without actually forcing it to a specific color.) This is the only case where the default appears to be wrong.

 

.