摘要:
遍历窗口中所有控件及ContextMenuStrip、Timer控件2009-06-19 遍历窗口中所有控件 foreach (Control c1 in this.Controls) 所有控件都在集合 Controls 中。 但 ContextMenuStrip、Timer 等控件不在这个集合中,如果要获取可以使用反射的方法System.Reflection.FieldInfo[] fieldInfo = this.GetType().GetFields(System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingF 阅读全文
posted @ 2009-07-22 16:33
Cad人生
阅读(554)
评论(0)
推荐(0)
浙公网安备 33010602011771号