日期:2014-05-17 浏览次数:21026 次
FrmWait wForm;
wForm = new FrmWait();
Thread thread= new Thread((ThreadStart)delegate
{
Application.Run(wForm);
});
thread.Start();
DoSomthing();//数据处理函数耗时比较长
wForm.Invoke((EventHandler)delegate { wForm.Close(); });
while (!this.IsHandleCreated)
{
;
}