How do I find out the size of the entire desktop? Not the \"working area\" and not the \"screen resolution\", both of which refer to only o
You can use the Bounds of System.Drawing
.
You can create a function like this
public System.Windows.Form.Screen[] GetScreens(){
Screen[] screens = Screen.AllScreens;
return screens;
}
and than you can get the screen one, two, etc. in a variable like this:
System.Windows.Form.Screen[] screens = func.GetScreens();
System.Windows.Form.Screen screen1 = screens[0];
then you can get the bounds of the screen:
System.Drawing.Rectangle screen1Bounds = screen1.Bounds;
With this code you will get all the properties like Width
, Height
, etc.