110,533
社区成员
发帖
与我相关
我的任务
分享
Form2 fm;
private void button1_Click(object sender, EventArgs e)
{
Thread t = new Thread(new ThreadStart(show));
t.Start();
}
void show()
{
fm = new Form2();
Application.Run(fm);
}
private void button2_Click(object sender, EventArgs e)
{
fm.Invoke(new Action(() =>
{
fm.textBox1.Text = "2323";
}));
}