[英]C#: Creating SystemInfo dialog similar to Visual Studio Help | System Info
Within Visual Studio, if you click on Help | 在Visual Studio中,如果单击帮助| About Microsoft Visual Studio | 关于Microsoft Visual Studio System Info, you get a tree view with system info parameters. 系统信息,您将获得带有系统信息参数的树形视图。
I am looking at the System.Management.ManagementObjectSearcher
class to create a similar dialog but is there a .NET API one can call to bring up a similar window with such info? 我正在查看System.Management.ManagementObjectSearcher
类,以创建一个类似的对话框,但是是否可以调用.NET API来打开类似窗口并显示此类信息?
您在寻找TreeView控件吗?
It's a one-liner: 这是单线的:
private void SysInfo_Click(object sender, EventArgs e) {
System.Diagnostics.Process.Start("msinfo32.exe");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.