WinForms: how to retrieve the system colors for highlighted buttons

456 views Asked by At

When writing WinForms desktop applications (VB or C#), how can I retrieve/mimic the current system colors scheme for buttons (i.e. fill and border colors when static and ESPECIALLY when highlighted)? For example, on my Windows 10 with (Aero?) theme, buttons look like this:

enter image description here

I tried SystemColors constants but couldn't replicate the colors in the above image.

0

There are 0 answers