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

Ö

Ö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
 
R

Robert Conde

look at the SetWindowTheme function

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

Robert Conde
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top