子窗口无法移动或关闭 [英] Child window can't be moved or closed

查看:79
本文介绍了子窗口无法移动或关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#winForm应用程序,该应用程序生成一个子窗口...我的用户有4个或更多的监视器,并且每当他们将子窗口移动到其他监视器之一时,便无法移动或关闭子窗口.鼠标指针呈现双箭头"形状,就好像它处于调整大小模式一样

有人知道这里发生了什么吗?生成子窗口之前,我从未遇到过这个问题.

I have a C# winForm app that spawns a child window...my users have 4 or more monitors and whenever they move the child window to the one of the other monitors they can''t move or close the child window. the mouse pointer takes on the shape of ''double arrows'' as though it''s in resize mode

Does anyone have any idea what''s going on here? I''ve never had this issue before when spawning child windows.

推荐答案

我创建了一个多屏幕应用程序,发现解决方案是将子窗口创建为单独的窗体然后在设计器中将它们用作数组,因此child [] c = new child [3];
然后,您可以通过for(int i,i == 3,i ++){c [i] .text ="example";}
I created a multi screen app and found the solution was to create the child windows as separate forms in the designer then use them as an array so child[] c = new child[3];
Then you can pass the relevant data to each form through for(int i,i==3,i++){c[i].text="example";}


移动的表单工作人员将相关数据传递给每个表单线程到主线程
moved form worker thread to main thread


这篇关于子窗口无法移动或关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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