求助大佬,如何在我动态增加的面板里面继续添加label等控件
Dim txt As WinForm.panel
Dim top As Integer = 0
txt = e.Form.CreateControl("panel1", ControlTypeEnum.panel)
For Each c As WinForm.Control In e.Form.Controls
If Typeof c Is WinForm.Panel Then '判断控件是否是面板
txt.Top = top
top += 350
txt.Left = 10
txt.width = 500
txt.height = 300
txt.backcolor = color.Azure
e.Form.Controls("TabControl6").Tabpages(0).AddControl(txt)
End If
Next
上面是我在button里写的增加面板,我想在这个代码里给他增加在增加的面板里添加其他控件的功能该怎么写啊