参考代码
static i As Integer = 0static y As Integer = 20
Dim txt As WinForm.TextBoxtxt = e.Form.CreateControl("TextBox" & i, ControlTypeEnum.TextBox)txt.Left = 150txt.Top = ytxt.height = 50txt.MultiLine = Truetxt.ScrollBars = Windows.Forms.ScrollBars.Verticale.Form.AddControl(txt)
i+= 1y += txt.height + 10