testform tf = new testform();
tf.show();
tf.uithread();
application.run();
}
public void uithread()
{
form1 = new form();
form2 = new form();
form2.show();//这里是关键
form1.show();
thread thread = new thread(new threadstart(workerthread));
testform tf = new testform();
tf.show();
tf.uithread();
application.run();
}
public void uithread()
{
form1 = new form();
form2 = new form();
form2.show();//这里是关键
form1.show();
thread thread = new thread(new threadstart(workerthread));