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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • thomasc

    #1

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

    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.C ontrol".

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


    Thanks much in advance!
  • Herfried K. Wagner [MVP]

    #2
    Re: [02/03] How to convert Windows system color into its RGB value

    "thomasc" <thomasc1020@gm ail.comschrieb:
    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.C ontrol".
    >
    Please let me know how I can obtain RGB value of a Windows system
    color.
    Take a look at 'Color.ToArgb'. 'SystemColors.C ontrol' is a value of type
    'Color'.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    Working...