How to enable theming for a single control on a form/usercontrol?

  • Thread starter Thread starter Özden Irmak
  • Start date Start date
Ö

Özden Irmak

Hi,

Does anybody know a way to enable theming for just a single .Net control (In
my sample it is a scrollbar), not the whole application, on a
form/usercontrol using UXTheme API?

I hope that this can be possible as I can see that system controls (such as
scrollbars in Panel,TextBox,etc.) are already drawn so whether the
application has enabled theming or not...

Any sample would be greatly appreciated...

Regards,

Özden Irmak
 
look at the SetWindowTheme function

specifically, to remove the theme of a control call
SetWindowTheme(hwnd,null,null)

Robert Conde
 
Back
Top