Export (0) Print
Expand All

Visual Basic Extensibility Reference

Visual Studio 6.0

VBControls Collection

See Also   Example   Properties   Methods   Events

Returns a collection all components on a form.




A program can access controls through the VBControls collection. Using the VBControls collection, you can:

  • Access all the controls on a component.

  • Step through the collection of controls.

  • Return a specific control.

  • Add controls to a component.

The Item method determines the default value of the VBControls collection.

The VBControls collection replaces the ControlTemplates collection from Visual Basic version 4.0.

© 2014 Microsoft