G
Guest
In my winform application I want to change the label's text propertie.
My labels are inside a panel (pnlCalendar). I know the label's name but no the index
Me.pnlCalendar.Controls("label1").text doesn't work.
Only if I change "label1" by its integer index it works. I can search this index making a loop but I'm not interested in because I want my applications runs fast
Any idea how to access directly knowing only the name, no the index
Thanks in advance
Monts
My labels are inside a panel (pnlCalendar). I know the label's name but no the index
Me.pnlCalendar.Controls("label1").text doesn't work.
Only if I change "label1" by its integer index it works. I can search this index making a loop but I'm not interested in because I want my applications runs fast
Any idea how to access directly knowing only the name, no the index
Thanks in advance
Monts