Type t= m_sceneControl.GetType(); PropertyInfo propInfo = t.GetProperty("Events", BindingFlags.Instance | BindingFlags.NonPublic); EventHandlerList eventHandlers = (EventHandlerList)propInfo.GetValue(m_sceneControl, null); System.Reflection.FieldInfo fieldInfo1 = typeof(Control).GetField("MouseWheel", BindingFlags.Static | BindingFlags.NonPublic); Delegate del1 = eventHandlers[fieldInfo1.GetValue(m_sceneControl)]; if (del1 != null) { foreach (Delegate temp in del1.GetInvocationList()) { eventHandlers.RemoveHandler(fieldInfo1.GetValue(null), temp); } }
好的,找到了一个,我试试。