C# 自动退出当前程序,然后再启动

  protected void ReStartApplication()
        {

            Thread.Sleep(2000);

            Process.Start(this.GetType().Assembly.Location);

            Application.Exit();
        }

posted @ 2012-01-18 10:03  咸鱼公子  Views(1208)  Comments(0Edit  收藏  举报