我在运行时在TableLayoutPanel
中添加了1000个组控件。执行后,它会在相应的行中显示大约300个控件。在第300行之后,添加了行,但是相应添加的行中的控件不可见。
我的编程代码/逻辑是这样的:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim tableLayoutPanel As New TableLayoutPanel
tableLayoutPanel.Dock = DockStyle.Fill
tableLayoutPanel.AutoScroll = True
tableLayoutPanel.RowCount = 1000
For i = 0 To 999
Dim groupCtrl As New DevExpress.XtraEditors.GroupControl
groupCtrl.Text = String.Format("Group Control {0}", i)
groupCtrl.Dock = DockStyle.Fill
groupCtrl.Visible = True
groupCtrl.Enabled = True
tableLayoutPanel.Controls.Add(groupCtrl, 0, i)
Next
Dim c = tableLayoutPanel.Controls.Count
Me.Controls.Add(tableLayoutPanel)
End Sub
如何查看TableLayoutPanel
中的所有控件?