.NET应用程序在两个监视器上运行 [英] .NET application running on two monitors

查看:129
本文介绍了.NET应用程序在两个监视器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我的.NET应用程序必须在具有两个活动监视器的计算机上运行.
主应用程序将在第一个监视器上运行(同时第二个监视器不应显示任何东西),但是在特定事件(主应用程序中的按钮被点击)下,所需的行为是仅在第二个监视器上显示特定形式监视器,并且在提交时,屏幕应再次变黑.
任何建议都将不胜感激
rgds

I have a requirement where my .NET application will run on a computer having two active monitors.
The main application will be running on 1 monitor (meanwhile the second monitor should not show any thing), but at a specific event (hiting of a button in the main application), the desired behavior is to show a specific form ONLY on the second monitor, and on submitting the screen should again be turned black.
Any piece of advice would be appreciated
rgds

推荐答案

您可以使用
You can use SystemInformation.VirtualScreen[^] and other SystemInformation properties to determine the screen size and position. Then position the windows appropriately.


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

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