检测显示器的连接/断开 [英] Detect Monitor Connect/Disconnect

查看:78
本文介绍了检测显示器的连接/断开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我希望创建一个简单的应用程序,以检测何时连接或断开了第二台监视器.我希望能在C#中做到这一点,但我愿意接受其他选择:3

Hi there,
I was hoping to make a simple application that would detect when a second monitor is connected or disconnected. I was hoping to do this in C# if possible but I''m open to other options :3

推荐答案

您可以检查Screens类以查看它有多少个屏幕在计时器上检测到.我怀疑是否有一个事件可以挂断.
You could check the Screens class to see how many screens it detects, on a timer. I doubt there''s an event you can hook in to.


这篇关于检测显示器的连接/断开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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