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