C#如何实现窗体间的跳转
private void 添加产能ToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();//想要打开的窗体界面
this.Hide();//隐藏当前窗体
frm2.ShowDialog();
Application.ExitThread(); //退出当前窗体,这一步很重要,否则最后可能无法将所有进程关闭。最好是在跳转页面后,将之前的页面退出。
}