I have this code:
I'm using..Code:IEnumerator myEnum = panel1.Controls.GetEnumerator(); while(myEnum.MoveNext()) { object o = myEnum.Current; 'now convert object to UserControl }
but doesn't work.Code:UserControl uc = Convert.ChangeType(o,GetType(UserControl));
Any ideas??


Reply With Quote
: