Getting Windows XP colours in .NET

Posted by LauraM on Stack Overflow See other posts from Stack Overflow or by LauraM
Published on 2008-11-07T13:01:06Z Indexed on 2010/04/10 19:33 UTC
Read the original article Hit count: 330

Filed under:
|
|

I am trying to get a specific colour used by Windows XP in my .NET application.

In Windows XP, if you go the Control Panel in 'category view', on the left hand side you have some 'See Also' options (Windows Update, Help and Support, Other Control Panel Options). The colour I'm trying to get is the light blue background colour shown behind these options.

I don't need the hex/RGB value of the colour, as it can change depending on the style settings used on the desktop.

My question is - is it possible to programmatically get hold of this colour in a .NET app?

The colour doesn't appear to be in SystemColors, although it's very similar to SystemColors.InactiveCaptionText (and I think I can probably get away with using this). I'm just wondering if there is a way to get hold of the exact colour.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about colors