Share via


Visual Basic Extensibility Reference

SelectedVBControls Collection

See Also   Example   Properties   Methods   Events

Returns a collection of currently selected controls on a component.

Syntax

SelectedVBControls

Remarks

You can use this collection to access all currently selected controls on a form. The code can step through the collection of controls or request a specific control.

This collection has the same specifications as the VBControls collection, except this collection doesn't implement the Add method. The default method for the SelectedVBControls collection is the Item method and is indexed with integers.

This collection replaces the SelectedControlTemplates collection from Visual Basic version 4.0.