添加一个按钮,并为按钮添加点击事件(注:Frm_Main为需要跳转的窗口名字)

private void Btn_OK_Click(object sender, EventArgs e)
{
  //打开另一个窗口的同时关闭当前窗口
  Thread th = new Thread(delegate () { new Frm_Main().ShowDialog(); });
  th.Start();
  this.Close();            
}

 

相关文章:

  • 2021-11-18
  • 2021-12-26
  • 2021-09-18
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-05-31
  • 2022-12-23
  • 2021-11-25
  • 2021-10-09
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案