winform中 让 程序 自己重启

 private void button1_Click(object sender, EventArgs e)
        {
            Application.ExitThread();
            Application.Exit();
            Application.Restart();
            Process.GetCurrentProcess().Kill();  
        }

posted on 2018-04-18 10:43  陈德洲  阅读(161)  评论(0编辑  收藏  举报

导航