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.
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
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
精彩评论