Controls Property

Object List Next Object

Defined By:
Form

Description:

Controls is a read only reference to a ControlGroup that contains all the controls on a given form.

Details:

Controls is a reference to a ControlGroup object that contains every control on a form. To execute a given method on every control on the form that has that method, use the Controls.Method syntax. If no object in the ControlGroup contains the requested method, an exception will be thrown. By passing Controls an index, Controls can be used as an array of Object References to all the controls on the form.

Data Type: Reference (ControlGroup)

See Also:

ControlGroup