views:

75

answers:

2

Hi there,

I'm working on a troubleshooting program, which will help users to fix certain errors caused by.. all sorts of things.

Anyway, one of the features I want it to have, is change a program's compatibility mode to windows XP mode without Visual Theme's. But I couldn't find anything.

So I'm just wondering if this is possible?

Thank you in advance.

+1  A: 

Check out Application.EnableVisualStyles().

Dave Markle
Thank you, that's one down. :)
Nick
It is not :) Can't stop that program from calling it.
Hans Passant
I'm not sure why I would want to stop the program from calling that function?
Nick
A: 

You can right click on your program (.exe) and select Properties. Once properties dialog is open, look for Compatibility tab. Select it and check "Compatibility Mode" check box and select Windows XP from drop down list. That should run your .exe in Windows XP compatibility mode then. HTH

Pradeep
Yea, I could do it like that, but that's not really a feature. I guess it's called changing the properties programmatically.
Nick