c# - Changing Color of Panel to match Users Theme Color -


how can set backgroundcolor of control (panel) same color user's windows theme color?

i found this: changing theme(color) of panel according windows themes

and i'm sorry, don't think answerer's bothered check said. setting control's backgroundcolor control, not make same color theme color. gives nice gray-ish looking color.

i want know color glass in windows vista/7. how can info @ runtime?

thank you

to modify background color of panel matches window color defined in theme, can do:

yourpanel.backcolor = systemcolors.window; 

to obtain glass color on windows vista , higher, have p/invoke dwmgetcolorizationcolor().


Comments