An
Arraylist
is only a collection of objects.
It is not a
Control
.
You can store anything you want in a
arraylist
var arrayList1 = new ArrayList();
arrayList1.Add("a string");
arrayList1.Add(2);
arrayList1.Add(new Object());
You can also add controls
arrayList1.Add(new Button());
arrayList1.Add(new Textbox());
This won't show your objects, you only use the
Arraylist
to store them for later use in a convenient way.