日期:2014-05-17 浏览次数:20861 次
var frm = new Form1();
var method = frm.GetType().GetMethod("Form1_FormClosing", BindingFlags.Instance | BindingFlags.NonPublic);
frm.GetType().GetEvent("FormClosing").GetRemoveMethod().Invoke(frm, new object[] {method}); //exception: 类型“System.Reflection.RuntimeMethodInfo”的对象无法转换为类型“System.Windows.Forms.FormClosingEventHandler”