在C#的winform如何确定哪些监控应用程序上显示 [英] In a C# winform how do identify what monitor the app is displayed on

查看:268
本文介绍了在C#的winform如何确定哪些监控应用程序上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

复制=http://stackoverflow.com/questions/549751/how-do-i-find-what-screen-the-application-is-running-on-in-c/549789# 549789>我如何查找屏幕上的应用程序在C#中



在一个C#WinForm的运行如何确定显示什么监控应用三监视器设置。


解决方案

  System.Windows.Forms.Screen.FromControl() 

检索包含指定控件的最大部分的显示屏幕。



和也是这个属性可能是有益的:

  System.Windows.Forms.Screen。 AllScreens 

获取系统上的所有显示器阵列。


Duplicate of How do I find what screen the application is running on in C#

In a C# winform how do identify what monitor the app is displayed on in a three monitor setup.

解决方案

System.Windows.Forms.Screen.FromControl()

Retrieves a Screen for the display that contains the largest portion of the specified control.

And also this Property might be helpfull:

System.Windows.Forms.Screen.AllScreens

Gets an array of all displays on the system.

这篇关于在C#的winform如何确定哪些监控应用程序上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆