c# - 如何在 Windows 10 中打开显示设置(语法上,特别是使用 C#)?

标签 c# wpf windows-10 microsoft-metro

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

我试过这个:

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

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

有什么帮助吗?

最佳答案

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

Process.Start("ms-settings:display");

使用此 URI 方案 “ms-settings:” 将 Windows 设置应用程序启动到特定设置页面。参见 Launch the Windows Settings app .

关于c# - 如何在 Windows 10 中打开显示设置(语法上,特别是使用 C#)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51274892/

相关文章:

c# - 在 C# Windows 应用程序中替换 Excel 单元格值时出现警告消息

c# - 使用数据库优先方法的 WPF 中的 DataAnnotation - 如何将数据注释移动到好友类,包括。 IsValid 函数

c# - 如何为在 Windows 10 上运行的 Windows 8.1 应用程序指定初始窗口大小

api - 统一写入过滤器API

c# - 提取 "Home"之后的 URL 部分

c# - WebClient.DownloadProgressChanged : Console. WriteLine() 正在阻塞 UI 线程

WPF 列表框包装

wpf - SQLite DateTime 与 VARCHAR 的比较

installation - 微软 Visual Studio "setup blocked"

c# - .Net Framework 中的手动内存分页(可能/如何?)