Tim T
Tim T

Reputation: 41

How to change windows control panel settings through C#

More specifically I want to change Visual Effects. My goal is to press a button then have it change the 15 visual effects. Such as turning off "drop shadow" and disabling "fade/slide menus into view." I did a ton of searching and the only thing I accomplished is how to find out if it is enabled with something like this:

dropshadow = SystemInformation.IsDropShadowEnabled;
MessageBox.Show("Drop Shadow enabled:"+Convert.ToString(dropshadow));

This is for C#

Upvotes: 2

Views: 3649

Answers (1)

Simon Laing
Simon Laing

Reputation: 1214

I think you will need to use pinvoke to achieve this.

Have a look at http://support.microsoft.com/kb/97142 And here is a c# example http://www.pinvoke.net/default.aspx/user32.systemparametersinfo

Not sure if this covers everything you want, but should cover most.

This is what SystemInformation uses under the hood, I believe.

Upvotes: 1

Related Questions