Collection of Controls?
I have what is probably a very simple question, but it has me stumped. Is it possible to have a collection of controls? I have about 30 instances of a custom control on my form and at times would like to be able to treat the controls as a group. ie.
For x = 0 to 29
myCollection(x).justdoit
Next
I have figured out how to create the collection as a class (inheriting Collection.Base). I have created methods that add my controls the list and an index as a property, but I am having trouble adding the controls that I have already created on my form, onto the collection.
Any ideas??
|