sjn78 Posted March 13, 2004 Posted March 13, 2004 I'm writing a bit of code to put a progress bar on a statusbar. This is the problem. I have designed it to allow for XP styles and make it fit and look good, but if the system is not XP or if XP is set to Windows Classic themes, the progress bar is misaligned. Is there a way to detect if XP is running XP Styles or not. This way I can check what OS is running, if pre XP adjust the progress bar to suit, and do the same if XP is visually set to Classic Style. Quote
*Gurus* divil Posted March 13, 2004 *Gurus* Posted March 13, 2004 First you need to detect if you're running on XP or later, by checking Environment.OSVersion. Then you need to use the IsAppThemed api, exposed in uxtheme.dll. For more information on this api consult msdn. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.