方法1:

System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);  //重新开启当前程序
Close();//关闭当前程序

方法2:

System.Windows.Forms.Application.Restart(); //重启当前程序

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2021-11-23
  • 2021-12-17
  • 2022-02-16
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案