C # Get the number of the display screen where a screen display control winform

Original: C # Get the number of the display screen where a screen display control winform

Get the number of screens connected to the current system: Screen.AllScreens.Count ();
Gets the name of the current screen: string CurrentScreenName = Screen.FromControl (this) .DeviceName;
Get the current screen object: Screen CurrentScreen = Screen.FromControl (this) ;
Get the current screen mouse cursor: screen CurrentScreen = Screen.FromPoint (new Point (Cursor.Position.X, Cursor.Position.Y));

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/11106135.html