如何在 Windows 10 中打开显示设置(以编程方式,特别是使用 C#)?

Byu*_*usa 2 c# wpf microsoft-metro windows-10

我正在尝试使用 C# 在 Windows 10 中打开/启动显示。

我试过这个:

Process.Start("explorer.exe", @"shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}");
Run Code Online (Sandbox Code Playgroud)

但它打开关于(关于计算机的信息)。

有什么帮助吗?

ken*_*yzx 6

不需要 GUID,Windows 10上最简单的方法是

Process.Start("ms-settings:display");
Run Code Online (Sandbox Code Playgroud)

使用此 URI 方案“ms-settings:”将 Windows 设置应用程序启动到特定设置页面。请参阅启动 Windows 设置应用程序

  • 仅适用于 Windows 10。 (2认同)