winform通过代码注册或者是取消事件? this.FormClosing -= new System.Windows.Forms.FormClosingEventHandler(this.OnFormClosing); 转载于:https://www.cnblogs.com/xuqiang/archive/2011/03/20/1989256.html