I want to use the systemcolor in my design that is used for the hover state of a button. In my image below, you can see the light blue color that is displayed when the user hovers above the "Find and Replace" button. I want to set this color programmatically, so I am trying to set the color from C#. However, when I try to get the RGB values from SystemColors.Highlight
the color is wrong. You can see the color used on the "Projects" button below.
byte r = SystemColors.Highlight.R;
byte g = SystemColors.Highlight.G;
byte b = SystemColors.Highlight.B;