|
-
Mar 17th, 2009, 10:46 PM
#6
Thread Starter
Fanatic Member
Re: Create a Control During RunTime
 Originally Posted by jmcilhinney
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:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|