[求助]如何在我动态生成的面板里面继续添加其他控件 Post By:2017/11/15 11:12:00 [显示全部帖子]
求助大佬,如何在我动态增加的面板里面继续添加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