根据对象名获取对象

            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  阅读(453)  评论(0编辑  收藏  举报