admin管理员组

文章数量:1570221

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));

posted on 2019-06-29 11:44 NET未来之路 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://wwwblogs/lonelyxmas/p/11106135.html

本文标签: 屏幕显示器数量Winform