C#获取显示器屏幕数量 控制winform显示到哪一个屏幕

原文: C#获取显示器屏幕数量 控制winform显示到哪一个屏幕

获取当前系统连接的屏幕数量: Screen.AllScreens.Count();
获取当前屏幕的名称:string CurrentScreenName = Screen.FromControl(this).DeviceName;
获取当前屏幕对象:Screen CurrentScreen = Screen.FromControl(this);
获取当前鼠标所在的屏幕:Screen CurrentScreen = Screen.FromPoint(new Point(Cursor.Position.X, Cursor.Position.Y));

猜你喜欢

转载自www.cnblogs.com/lonelyxmas/p/11106135.html