调用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(); }
时间: 2024-11-05 12:35:50