IContainerControl col = this.GetContainerControl();
Control con = this.GetNextControl(new Button(), true);
System.Collections.IEnumerator control = this.Controls.GetEnumerator();
while (control.MoveNext())
{
Control ctr = control.Current as Control;
if (ctr != null)
MessageBox.Show(ctr.Text.ToString());
}
这面的全部控件获取!Groubox 或 tap 里面的嵌套的是自己写算法!