循环每一个控件,判断类型,然后处理
For Each c As object In e.Form.controls If Typeof c Is winform.GroupBox Then msgbox(c.name) End IfNext