Hi.
Maybe somebody can help me, with such a thing.. how to repeat code by changing object name. It could be hard to understand
I mean:
But if i need 2000 of them..
Or maybe there is another, easier way to build dynamic label field?!
Maybe somebody can help me, with such a thing.. how to repeat code by changing object name. It could be hard to understand
I mean:
VB.NET:
Dim Label1 As New Label()
Me.Controls.Add(Label1)
Dim Label2 As New Label()
Me.Controls.Add(Label2)
Dim Label3 As New Label()
Me.Controls.Add(Label3)
' ...4..5..
But if i need 2000 of them..
VB.NET:
Dim x as integer
for x = 1 to 2000
Dim Label<<<here x value>>> As New Label()
Me.Controls.Add(Label<<<here x value>>> )
Next
Or maybe there is another, easier way to build dynamic label field?!