Is there any way to apply a custom Visual Style (.msstyle) to a Windows Forms application without changing the theme of the entire system? Basically we want our application to maintain the same theme regardless of what has been set in Control Panel. Please don't tell me whether you think this is a good idea. I am wondering if there is any way to do this that doesn't involve a proprietary library, like a series of native API calls. Thanks!
The SetWindowTheme
function looks like the solution you 're looking for. You 'll have to do P/Invoke to use it.