public void M1()
{
this.Close();
}
public void M2()
{
Form2 obj = new Form2();
obj.ShowDialog();
}
private void button1_Click(object sender, System.EventArgs e)
{
t1 = new Thread(new ThreadStart(M2));
t2 = new Thread(new ThreadStart(M1));
t1.Start();
t2.Start();
}
上面的代码在2003中运行没问题,可到了2005中却出错了,望高手指点一二,谢谢