T
Tym
I was looking for a way to add a control array at runtime - but it
doesn't look like vb.net has that ability any more...
Was looking at controls one at a time thus:
Dim Label1 As New Label
Label1.Text = "label 1"
Label1.Location = New Point(20, 25)
Me.Controls.Add(Label1)
Is there any easy way of doing domething like.....
For I = 1 to 100
Dim Label(I) As New Label
Label(I)1.Text = "label " & I
Labe(i)1.Location = New Point(20 * I, 25)
Me.Controls.Add(Label(I))
Next I
of perhaps dynamically naming the variable in the dim statment
for I = 1 to 100
sLabel(i) = "LABLE_NO_" & I
next I
Dim sLABEL(I).text As New Label
if you know that I mean...
doesn't look like vb.net has that ability any more...
Was looking at controls one at a time thus:
Dim Label1 As New Label
Label1.Text = "label 1"
Label1.Location = New Point(20, 25)
Me.Controls.Add(Label1)
Is there any easy way of doing domething like.....
For I = 1 to 100
Dim Label(I) As New Label
Label(I)1.Text = "label " & I
Labe(i)1.Location = New Point(20 * I, 25)
Me.Controls.Add(Label(I))
Next I
of perhaps dynamically naming the variable in the dim statment
for I = 1 to 100
sLabel(i) = "LABLE_NO_" & I
next I
Dim sLABEL(I).text As New Label
if you know that I mean...