{
Thread thread = new Thread(threadFrom);//創建新線程
thread.Start();
/***開始加載任務**/
/***結束時銷毀線程***/
thread .Abort();
}
public void threadFrom()
{
MethodInvoker MethInvo = new MethodInvoker(ShowForm2);
BeginInvoke(MethInvo);
}
public void ShowForm()
{
Form2 f2 = new Form2();
f2.Show();
}