本文介绍了多个监视器在.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从.NET的返回的所有显示 Screen.AllScreens 无论硬件配置?例如,一台PC上,你可以有:

Are all displays returned from .NET's Screen.AllScreens regardless of hardware configuration? For example, on a single PC you can have:

  1. 显卡出两种显示=共2显示
  2. 显卡各出1显示=共2显示,
  3. 显卡各出2显示器= 6显示,
  4. 的Eyefinity卡出6显示器(在DisplayPort的)

在所有这些情况下,如果我使用 Screen.AllScreens 我可以访问每一个显示器?

In all these cases, if I use Screen.AllScreens can I access each display individually?

另外,如果我有一个卡在扩展模式下,这意味着2显示插入一张卡,但它只是一个大的桌面(我在工作中使用)?我还可以指定内容显示在一个屏幕上?

Also, what if I have a card in extended mode, meaning 2 displays plugged into one card but it's just one big desktop (what I use at work)? Can I still specify content to appear on one screen?

推荐答案

是的,Windows并不怎么在意屏幕分布在视频适配器。它只是为每个屏幕自己的坐标,这取决于你如何安排他们在显示小程序。你得到你的窗口通过设置它的位置和大小,以适应Screen.Bounds

Yes, Windows doesn't care how the screens are distributed across video adapters. It simply gives each screen its own coordinates, depending how you arrange them in the Display applet. You get your window to display on a specific one by setting its location and size to fit inside the Screen.Bounds

这篇关于多个监视器在.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 15:29