Winform程序实现注销功能,跳转到登录窗口

 private void btn_Cancel_Click(object sender, EventArgs e)
  {
 DialogResult dr = MessageBox.Show("是否注销当前账号?", "提示", MessageBoxButtons.OKCancel);
            if (dr == DialogResult.OK)
            {
                Application.ExitThread();
                System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
            }
  }

你可能感兴趣的:(.NET,Framework,c#,winform)