I am Adding Lables to a form, one at a time.
I want the caption/text of each label to be different from the other, in that if the form contains, Label1, i iterate through it and when i add the next, it should be Lable2....etc. As the numbers on the far end add on. How can i do this.
This is what i have.
VB Code:
For i As Integer = 0 To Me.Controls.Count If lbl.Text.ToLower = "added label" Then i += 1 lbl.Text &= i Else lbl.Text = "Added Label" End If Next




Reply With Quote