C#多屏时控制窗体显示在哪个显示器上

在一款使用C#开发的应用中,遇到一个功能涉及到四个窗体之间的交互,每个窗体需要在不同的屏幕上显示。主窗体位于MDI父窗口,其余三个窗体分别位于其他屏幕。在双屏系统中,窗体2和4能正确显示在第二屏,但窗体3错误地回到了主屏。当尝试在四屏系统中运行时,情况类似。在打开窗体的方法中,根据屏幕数量设置窗体位置,但在双屏系统下,尽管设定了窗体2、3、4的位置,但窗体3的位置始终显示在主屏,且位置信息被设置为-1280,0。调试过程中未能找出原因。" 123563349,12729196,数学之美:孪生素数与质数问题探索,"['数学', '算法', '编程竞赛', '蓝桥杯']
摘要由CSDN通过智能技术生成

 Have an application functionaluty which has 4 forms which are needed to interact by the user by dragging data from these forms to one another
the main form is located in the MDI Parent and the rest are on their respective screen (3 other secondry screens)

At the moment i am testing using 2 screens but i get a very similar behavious when i run it on a 4 screened system.

For the 2 screen system:
form1 opens in primary screen (ie the MDI Parent)
form2 opens in 2nd screen
form3 opens in 1st screen (primary)
form 4opens in 2nd screen

for the 4 screened system:
form1 opens in primary screen (ie the MDI Parent)
form2 opens in 2nd screen
form3 opens in 1st screen (primary)
form 4opens in 2nd screen

When this feature is requested by the user, form1 opens
form1 has the following code which opens form2, form3, and form4 in their respective screens

following is the code in method called by

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值