[02/03] How to convert Windows system color into its RGB value

  • Thread starter Thread starter thomasc
  • Start date Start date
T

thomasc

Hello,

This is about VB.NET2003.

I'm trying to obtain the RGB value of a Windows system color and use
it as the background color of my Microsoft Word file. But I have not
been able to find out how I can do so.

THe name of the system color I'm interested in is
"System.Drawing.SystemColors.Control".

Please let me know how I can obtain RGB value of a Windows system
color.


Thanks much in advance!
 
thomasc said:
I'm trying to obtain the RGB value of a Windows system color and use
it as the background color of my Microsoft Word file. But I have not
been able to find out how I can do so.

THe name of the system color I'm interested in is
"System.Drawing.SystemColors.Control".

Please let me know how I can obtain RGB value of a Windows system
color.

Take a look at 'Color.ToArgb'. 'SystemColors.Control' is a value of type
'Color'.
 
Back
Top