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 );
}