See Also Example Applies To Properties Methods
Includes all the controls contained in an object.
Remarks
Each control in a Controls collection has a unique index whose value can be either an integer or a string. The index value for the first control in a collection is 0; the value for the second control is 1; and so on. This value indicates the order in which the controls were added to the collection.
If the index is a string, it represents the name of the control. The Name property of a control also specifies the control’s name.
You can use the Controls collection to enumerate or count individual controls and to set their properties. For example, you can enumerate the Controls collection of a page and set the Height property of each control to a specified value.
Note The For Each...Next loop is useful for enumerating a collection.