调用this.Close();后监听Browser_FormClosed加作处理

this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Browser_FormClosed); 

private void Browser_FormClosed(object sender, FormClosedEventArgs e)
 {
     System.Diagnostics.Process process = System.Diagnostics.Process.GetProcessById(Process.GetCurrentProcess().Id);
     process.Kill();
 }

 

相关文章:

  • 2021-12-01
  • 2021-10-01
  • 2022-01-04
  • 2022-02-25
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
相关资源
相似解决方案