Home All Groups Group Topic Archive Search About
Author
16 Jan 2006 1:05 PM
vqthomf
HI I was wondering if anybody know what thw RGB is for the VBButtonFace
colour?.
TIA
Charles

Author
16 Jan 2006 1:10 PM
Carlos J. Quintero [VB MVP]
The class System.Drawing.Color has several methods or properties to get the
RGB components, such as the ToRgb method. ButtonFace is a system color so I
think that the actual RGB components depend on the Windows settings for
colors. On my system is C0h for R, G and B.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"vqthomf" <vqth***@discussions.microsoft.com> escribió en el mensaje
news:872073D5-FA8D-4FAE-BCC1-FFEB027DE54F@microsoft.com...
> HI I was wondering if anybody know what thw RGB is for the VBButtonFace
> colour?.
> TIA
> Charles
Author
16 Jan 2006 4:02 PM
Cyril Gupta
Hello Charles,

This is totally system specific. Like Carlos said, you should use The
System.Draw.Color namespace to get the currently set colors in the Windows
theme that the user has, unless of course you need to use specific colors.

Regards
Cyril Gupta