Patrick Klug
Patrick Klug

Reputation: 14391

How to show the "Display Settings" window from C#

How can I show the Windows Display Settings (Resolution Settings) window from C#. (the one where you can adjust screen resolutions)

I have found a way to change the display settings via p/invoke but all I want to do is show the Dialog Settings window that comes with Windows.

Upvotes: 2

Views: 1432

Answers (2)

user3500176
user3500176

Reputation: 63

For your information, all the syntaxes proposed here run on Windows XP, but the only one that is accepted by 360 Total Security is

control.exe desk.cpl,,,0

Thanks Patrick to have solved my problem with 360.

On the command line, you can also type :

desk.cpl,,,0

Upvotes: 0

Mark Sowul
Mark Sowul

Reputation: 10600

How about Process.Start("control", "desk.cpl")? Here is an MSDN page on launching control panels: http://msdn.microsoft.com/en-us/library/cc144191.aspx

Upvotes: 6

Related Questions