Dynamic Labels [RESOLVED]
I have searched this forum for hours for an answer to this question. There are many posts that are related to this but not exactly what i need to know...
What i am trying to do is after making labels dynamically how can i change the caption/text of each label indipendently from a button? The name of the dynamic labels is always changing and that info is retrieved from an xml file that can be changed so nothing can be static except for the button that initializes that label.text change...
here is the code i used to create the dynamic labels.
Code:
Dim lbl As New Label
Me.Controls.Add(lbl)
With lbl
.Name = ChangingVariable
.Parent = Me.Image1
.BackColor = Color.Transparent
.BringToFront()
.Top = 0
.Left = 0
.Width = 25
.Height = 55
End With