3

I can't seem to find out the exact color to the highlight when hovering over menu options in C#, anyone know?

Thanks

3
  • 2
    C# is a programming language, not a program or an application. You need to be more specific. Why not post a screen shot?
    – Bob
    Commented May 2, 2011 at 18:51
  • 1
    Take a screenshot and read the color using your favorite image editing program??
    – mellamokb
    Commented May 2, 2011 at 18:51
  • 1
    Remember that system colours may change according to themes...
    – Marco
    Commented May 2, 2011 at 18:53

1 Answer 1

10

I am not sure if this is what you mean, but there is a property: SystemColors.MenuHighlight if you want to match the system colors in your own GUI?

3
  • This is the best route, as the color is completely dependent on the user's theme.
    – pickypg
    Commented May 2, 2011 at 18:54
  • Does anybody know what this color is in hex, for CSS? I'm not writing in C# or anything, just html/css, so I don't know how to access SystemColors.MenuHighlight.
    – fronzee
    Commented Aug 2, 2012 at 16:54
  • @fronzee It depends on the user's system settings, I'm not sure of anyway to do this from Javascript, sorry Commented Aug 3, 2012 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.