/// <summary> /// 根据控件id得到控件 /// </summary> /// <param name="name"></param> /// <returns></returns> private Control GetControl(string name) { object o = this.GetType().GetField(name, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.IgnoreCase).GetValue(this); return ((Control)o); }