9 instantiations of Screen
System.Windows.Forms (9)
winforms\Managed\System\WinForms\Screen.cs (9)
132screens = new Screen[] {new Screen((IntPtr)PRIMARY_MONITOR)}; 217return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero); 310return new Screen(SafeNativeMethods.MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST)); 313return new Screen((IntPtr)PRIMARY_MONITOR); 329return new Screen(SafeNativeMethods.MonitorFromRect(ref rc, MONITOR_DEFAULTTONEAREST)); 332return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero); 364return new Screen(SafeNativeMethods.MonitorFromWindow(new HandleRef(null, hwnd), MONITOR_DEFAULTTONEAREST)); 367return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero); 493screens.Add(new Screen(monitor, hdc));
65 references to Screen
System.Windows.Forms (61)
winforms\Managed\System\WinForms\CommonDialog.cs (1)
179Rectangle screen = Screen.GetWorkingArea(Control.MousePosition);
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
103Rectangle screenBounds = Screen.FromRectangle(bounds).Bounds;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
6447Rectangle rectScreen = Screen.FromControl(this).WorkingArea; 19359Rectangle rect = Screen.GetBounds(pt);
winforms\Managed\System\WinForms\DisplayInformation.cs (1)
42bitsPerPixel = (short)Screen.PrimaryScreen.BitsPerPixel;
winforms\Managed\System\WinForms\Form.cs (11)
4027Screen desktop = null; 4031desktop = Screen.FromHandleInternal(ownerHandle); 4034desktop = Screen.FromPoint(Control.MousePosition); 4454Screen desktop = Screen.FromHandleInternal(ownerHandle); 4490Screen desktop = null; 4492desktop = Screen.FromControl(OwnerInternal); 4500desktop = Screen.FromHandleInternal(hWndOwner); 4503desktop = Screen.FromPoint(Control.MousePosition); 5955Screen[] screens = Screen.AllScreens;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
1639Rectangle rectScreen = Screen.FromControl(Edit).WorkingArea; 1714Rectangle rectScreen = Screen.FromControl(Edit).WorkingArea;
winforms\Managed\System\WinForms\Screen.cs (28)
69private static Screen[] screens; 118public static Screen[] AllScreens { 127Screen[] temp = new Screen[closure.screens.Count]; 132screens = new Screen[] {new Screen((IntPtr)PRIMARY_MONITOR)}; 136screens = new Screen[] {PrimaryScreen}; 205public static Screen PrimaryScreen { 208Screen[] screens = AllScreens; 233if (currentDesktopChangedCount != Screen.DesktopChangedCount) { 235Interlocked.Exchange(ref currentDesktopChangedCount, Screen.DesktopChangedCount); 290if (obj is Screen) { 291Screen comp = (Screen)obj; 302/// Retrieves a <see cref='System.Windows.Forms.Screen'/> 307public static Screen FromPoint(Point point) { 320/// Retrieves a <see cref='System.Windows.Forms.Screen'/> 326public static Screen FromRectangle(Rectangle rect) { 339/// Retrieves a <see cref='System.Windows.Forms.Screen'/> 344public static Screen FromControl(Control control) { 351/// Retrieves a <see cref='System.Windows.Forms.Screen'/> 356public static Screen FromHandle(IntPtr hwnd) { 362internal static Screen FromHandleInternal(IntPtr hwnd) { 380return Screen.FromPoint(pt).WorkingArea; 391return Screen.FromRectangle(rect).WorkingArea; 402return Screen.FromControl(ctl).WorkingArea; 413return Screen.FromPoint(pt).Bounds; 423return Screen.FromRectangle(rect).Bounds; 433return Screen.FromControl(ctl).Bounds;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
726return Screen.GetWorkingArea(this.Bounds).Size - this.Padding.Size;
winforms\Managed\System\WinForms\ToolTip.cs (12)
1563Screen screen = Screen.FromPoint(cursorLocation); 2161Screen screen = Screen.FromPoint(moveToLocation); 2335Screen screen = Screen.FromPoint(Cursor.Position); 2442Screen screen = Screen.FromPoint(cursorPos); 2469Screen screen = Screen.FromPoint(tt.Position); 2515Screen screen = Screen.FromPoint(Cursor.Position);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
91return ConstrainToBounds(Screen.GetWorkingArea(bounds), bounds); 97return ConstrainToBounds(Screen.FromRectangle(bounds).Bounds, bounds);
System.Workflow.ComponentModel (4)
AuthoringOM\Design\DesignerWidgets.cs (4)
1095Screen closestScreen = Screen.FromPoint(location); 1302foreach (Screen screen in Screen.AllScreens)