This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / C# 求助: 如何在线程(不是主线程) 中显示窗体?我在主程中创建了一个工作线程,
在工作线程中,当遇到某个特定的条件时, 它将创建一个FORM 对象, 并调用的FORM 的SHOW 方法显示.
但当调用SHOW 方法时, 窗体被冻结住了.
-bobo123(bobo);
2006-8-7
{158}
(#3128721@0)
-
你用ShowDialog()试试
-binghongcha76(一只大猫);
2006-8-7
(#3128874@0)
-
Use mainform invoke method to call subForm.Show() instead of in the thread
-david_zzh(和失眠说Bye-Bye);
2006-8-9
{611}
(#3132770@0)
-
这个可以工作.
-bobo123(bobo);
2006-8-9
(#3132996@0)
-
You should not show UI on non-UI thread.
-oceanwater(灌水日月长);
2006-8-9
(#3132911@0)