日期:2014-05-20 浏览次数:21155 次
我建立的程序是MDI程序,以下代码是在MDI子窗口执行的。为什么程序自动消息掉?什么出错了?
threads = new Thread[100];
for (int i = 0; i < threads.Length; i++)
{
threads[i] = new Thread(ThreadProc);
threads[i].Start(this);
}
Thread t = new Thread(ThreadProc);
t.Start();
void Do()
{
A.Text="aaaa";
}
void ThreadProc(Object sender)
{
(sender as FormRefres).Do();
}