Search results for 'Virtual Screen'. 1 post(s) found.
- 2008/09/22 Retrieve system information
When system information is required in application, SystemInformation global instance is very useful.
In case of getting Monitor Size, Virtual Screen, Computer Name, Keyboard Delay, Network Connection, Power Status, and other system variables, SystemInformation instance is very useful.
Following reference code is the example.
//Namespace reference
using System:
.
.
.
sysValues.Add("Monitor Size: ", SystemInformation.PrimaryMonitorSize);
sysValues.Add("VirtualScreen: ", SystemInformation.VirtualScreen);
sysValues.Add("Working Size: ", SystemInformation.WorkingArea);
sysValues.Add("Computer Name: ", SystemInformation.ComputerName);
sysValues.Add("Keyboard Delay: ", SystemInformation.KeyboardDelay);
sysValues.Add("Total Monitors: ", SystemInformation.MonitorCount);
sysValues.Add("Network Connection: ", SystemInformation.Network);
sysValues.Add("Power Status: ", SystemInformation.PowerStatus);
.
.
using System:
.
.
.
sysValues.Add("Monitor Size: ", SystemInformation.PrimaryMonitorSize);
sysValues.Add("VirtualScreen: ", SystemInformation.VirtualScreen);
sysValues.Add("Working Size: ", SystemInformation.WorkingArea);
sysValues.Add("Computer Name: ", SystemInformation.ComputerName);
sysValues.Add("Keyboard Delay: ", SystemInformation.KeyboardDelay);
sysValues.Add("Total Monitors: ", SystemInformation.MonitorCount);
sysValues.Add("Network Connection: ", SystemInformation.Network);
sysValues.Add("Power Status: ", SystemInformation.PowerStatus);
.
.
Another posts included in "C#"
| Convert System.DateTime to UNIX timestamp (0) | 2008/09/22 |
| Finding process name on OS (0) | 2008/09/22 |
| To load image from file (0) | 2009/09/03 |
| How to rename(change file name) in C# ? (1) | 2008/03/12 |
| Find Files in certain directory (0) | 2008/02/25 |
| How to speed up access to the RichTextBox Lines property (0) | 2007/09/25 |
| How to detect resource leaks in a Form (0) | 2007/09/25 |
| The best way to enable and disable buttons, menu items and toolbar buttons (0) | 2007/09/25 |

Prev

Rss Feed