获得当前操作系统的一些基本信息
2006-07-31 16:32
477 查看
private void button1_Click(object sender, System.EventArgs e)
{
// Get system information for the current machine.
listBox1.Items.Add("ComputerName : " + SystemInformation.ComputerName );
listBox1.Items.Add("Network : " + SystemInformation.Network );
listBox1.Items.Add("UserDomainName : " + SystemInformation.UserDomainName );
listBox1.Items.Add("UserName : " + SystemInformation.UserName );
listBox1.Items.Add("BootMode : " + SystemInformation.BootMode );
listBox1.Items.Add("MenuFont : " + SystemInformation.MenuFont );
listBox1.Items.Add("MonitorCount : " + SystemInformation.MonitorCount );
listBox1.Items.Add("MonitorsSameDisplayFormat : " + SystemInformation.MonitorsSameDisplayFormat.ToString() );
listBox1.Items.Add("ArrangeDirection: " + SystemInformation.ArrangeDirection);
listBox1.Items.Add("MousePresent : " + SystemInformation.MousePresent );
listBox1.Items.Add("MouseButtonsSwapped : " + SystemInformation.MouseButtonsSwapped );
listBox1.Items.Add("UserInteractive : " + SystemInformation.UserInteractive );
listBox1.Items.Add("VirtualScreen: " + SystemInformation.VirtualScreen );
}
{
// Get system information for the current machine.
listBox1.Items.Add("ComputerName : " + SystemInformation.ComputerName );
listBox1.Items.Add("Network : " + SystemInformation.Network );
listBox1.Items.Add("UserDomainName : " + SystemInformation.UserDomainName );
listBox1.Items.Add("UserName : " + SystemInformation.UserName );
listBox1.Items.Add("BootMode : " + SystemInformation.BootMode );
listBox1.Items.Add("MenuFont : " + SystemInformation.MenuFont );
listBox1.Items.Add("MonitorCount : " + SystemInformation.MonitorCount );
listBox1.Items.Add("MonitorsSameDisplayFormat : " + SystemInformation.MonitorsSameDisplayFormat.ToString() );
listBox1.Items.Add("ArrangeDirection: " + SystemInformation.ArrangeDirection);
listBox1.Items.Add("MousePresent : " + SystemInformation.MousePresent );
listBox1.Items.Add("MouseButtonsSwapped : " + SystemInformation.MouseButtonsSwapped );
listBox1.Items.Add("UserInteractive : " + SystemInformation.UserInteractive );
listBox1.Items.Add("VirtualScreen: " + SystemInformation.VirtualScreen );
}
相关文章推荐
- JS一些常用的命令——获得当前的信息
- 通过ManagementClass 获得显卡的一些基本信息(Win32_VideoController )
- SharePoint 2013 使用JQuery 一些记录如(SharePoint js 获得当前用户)等基本操作。
- 通过ManagementClass 获得显卡的一些基本信息(Win32_VideoController )
- 使用iphlpapi.h获得windows下一些基本的网络连接信息
- 获得当前Windows操作系统版本的详细描述信息
- 通过ManagementClass 获得显卡的一些基本信息(Win32_VideoController )
- javascript获得当前的信息的一些常用命令
- javascript获得当前的信息的一些常用命令
- 发布一个web service,可以通过ISBN获得图书的一些基本信息!
- JS一些常用的命令——获得当前的信息
- 获得当前连接网络信息
- 深入了解当前ETL中用到的一些基本技术
- java获取当前操作系统的信息
- jQuery 点击页面 获得当前点击元素的id 或者其他信息
- 通过OAuth2.0方式弹出授权页面获得用户基本信息
- 如何获得JDK1.6上的jconsole启动时的正在运行的JAVA进程的一些信息
- Html的一些基本信息
- 还原数据自动管理的一些参数和获得还原数据信息
- arcgis andriod 长按获得当前信息