Search results for 'Virtual Screen'. 1 post(s) found.

  1. 2008/09/22 Retrieve system information
2008/09/22 09:29

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:

.
.
.
    Hashtable sysValues = new Hashtable();

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


Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.