110,536
社区成员
发帖
与我相关
我的任务
分享
private void button1_Click(object sender, EventArgs e)//Form1 中的button
{
(new Form2()).Show();
this.Visible =false ;
}
private void button1_Click(object sender, EventArgs e)//Form2 中的button
{
(new Form3()).Show();
this.Close();
}
private void button1_Click(object sender, EventArgs e)//Form3 中的 button
{
(new Form1()).Show();
this.Close();
}
form2 f2=new form2();
f2.Parent=this;
f2.Show();
this.Visible = false//如果form1是主窗体的话就这样,
//如果不是的话就用this.Close();
this.Parent.Show();
this.Close();