larrythek1
01-06-2004, 10:31 AM
I know I'm still hung up over the lack of Control Arrays in vb .net, but is there an easier way to dynamically add controls to a form than what I show below?
Thanks,
Larry
Dim MyText1 As New TextBox()
Dim MYText2 As New TextBox()
Dim MyText3 As New TextBox()
MyText1.Location = New Point(25, 25)
Me.Controls.Add(MyText1)
MyText1.Text = "Text1"
MYText2.Location = New Point(25, 50)
Me.Controls.Add(MYText2)
MYText2.Text = "Text2"
MyText3.Location = New Point(25, 75)
Me.Controls.Add(MyText3)
MyText3.Text = "Text3"
Thanks,
Larry
Dim MyText1 As New TextBox()
Dim MYText2 As New TextBox()
Dim MyText3 As New TextBox()
MyText1.Location = New Point(25, 25)
Me.Controls.Add(MyText1)
MyText1.Text = "Text1"
MYText2.Location = New Point(25, 50)
Me.Controls.Add(MYText2)
MYText2.Text = "Text2"
MyText3.Location = New Point(25, 75)
Me.Controls.Add(MyText3)
MyText3.Text = "Text3"