Screen
class
represents one or more display devices on a single system
namespaces: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
syntax: public class screen
The constructor for this object is not public, so the Create screen object cannot be displayed, which is created when a public method is called.
Screen.allscreens Properties:
gets an array of all the monitors on the system.
syntax: public static screen[] Allscreens{get;}
Screen.workingarea Properties:
gets the work area of the monitor. The workspace is the desktop area of the display, excluding the taskbar, docking window, and docking toolbar.
syntax: public Rectangle workingarea{get;}
For example: Myscreen is a window that declares an object of a window My_screen
Myscreen My_screen;
System.Windows.Forms.Screen s2 = system.windows.forms.screen.allscreens[0];
System.Drawing.Rectangle r2 = s2. Workingarea;
My_screen. Top = R2. Top;
My_screen. left = R2. Left;
My_screen. Width = R2. Width;
My_screen. Height = R2. Height;
My_screen. Show ();
My_screen. WindowState = System.Windows.WindowState.Maximized;
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The use of multi-screen reality--screen class in C #