需要用到void ReportLogForm_Deactivate(object sender, EventArgs e){ this.Close();} 转载于:https://www.cnblogs.com/pnljs/p/3408529.html