方法1:
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); //重新开启当前程序 Close();//关闭当前程序
方法2:
System.Windows.Forms.Application.Restart(); //重启当前程序
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3