摘要:
1.手动创建一个控件2.反射查找事件,绑定事件到控件 1 private EventHandler BindEvent(ToolStripMenuItem Toostrip,string EventName) 2 { 3 PropertyInfo propertyInfo = (typeof(ToolStripMenuItem)).GetProperty("Events", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.IgnoreReturn | 阅读全文