Quote Originally Posted by jmcilhinney View Post
If you want to get a control by name, which you should generally avoid if possible, then you can do like this:
vb.net Code:
  1. Dim test As Label = Me.Controls("Label" & 1)
Generally avoid getting controls by name, or just getting controls period? Why should I avoid it, is there a better way?

Thanks for the code though.