foreach (Control CtlTabPage in xtctl.Controls)
{
if (CtlTabPage is DevExpress.XtraTab.XtraTabPage)
{
foreach (Control CtlGB in ((DevExpress.XtraTab.XtraTabPage)CtlTabPage).Controls)
{
if (CtlGB is System.Windows.Forms.GroupBox)
{
foreach (Control CtlFLP in ((System.Windows.Forms.GroupBox)CtlGB).Controls)
{
……
}
}
}
}
}
private sub GetCtrl(ParentCtrl as Control)
dim ctrlC as control
for each ctrlC in ParentCtrl.controls
...
If (TypeOf ctrlC Is Panel) OrElse _
(TypeOf ctrlC Is GroupBox ) Then
GetCtrl(ctrlC) '''''''''''''''''
End If
...
next
end sub