steverguy
asked on
Referring to Dynamically loaded UserControl in VB.NET
if I have this code:
for x = 0 to totalPics
Me.TabPage2.Controls.Add(N ew NamesControl.ProductImage)
next
How would I refer the the created control?
for x = 0 to totalPics
Me.TabPage2.Controls.Add(N
next
How would I refer the the created control?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it didn't seem to like cont.id - but i was able to use cont.name.
Thanks for he help!
Thanks for he help!
give the control an id when you add it to the tabpage then do.
dim control as NamesControl
control = Me.TabPage2.findcontrol("c