根据对象名获取对象

            object o = this.GetType().GetField(name, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.IgnoreCase).GetValue(this);
return ((Control)o);
posted @ 2011-09-22 20:23 MyFavorite 阅读(42) 评论(0) 编辑 收藏