比如说TextBox类型为System.Windows.Forms.TextBox
以前我用(Control.GetType()).ToString就可以获得控件的类型,并且做出相应的判断
For Each c As Winform.Control In Forms(Cstr(args(0))).Controls(Cstr(args(1))).Children
MessageBox.Show(Cstr(c.GetType())) Next