日期:2014-05-17 浏览次数:20750 次
加载窗口 form = new 加载窗口();
try
{
form.ShowDialog();
//处理数据...
}
catch (Exception ex)
{
...
}
finally
{
form.Dispose();
}
var frm = new Form1();
ThreadPool.QueueUserWorkItem(h =>
{
Thread.Sleep(5000);
frm.BeginInvoke(new Action(() => frm.Close()));
});
frm.ShowDialog();