【问题标题】:Exist on .NET any way to detect if a Monitor with VGA plug is still plugged-in?.NET 上是否存在任何检测带 VGA 插头的显示器是否仍插入的方法? 【发布时间】:2011-02-19 07:30:11 【问题描述】: 就是这样,我想知道是否有人拔掉显示器并采取了一些行动,知道吗? 谢谢 【问题讨论】: 标签: .net monitor vga 【解决方案1】: 我自己没有尝试过,但我认为您可以监听 WM_DEVICECHANGE 并检查 System.Windows.Forms.Screen.AllScreens 集合更改。 【讨论】: