Filling a custom container control with a loop

Hi: I`m sure the answer is easy but a I’ve not been able to find it… I did a custom control using a container control… now I put several of them within a windows and I would like to fill it with a loop… somthing like

for i as integer = 0 to 10
contantercontrol(i).id.text = str(i)

is it that possible or i need to fill each one of then?

A containercontrol cannot be a control set. So no, you cannot do that directly. What you can do is make a property of the window that is an array of your containercontrol and append each one individually to that array. Then you can use that array in a loop as in your example.