Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
VBComponents Collection

Visual Basic Extensibility Reference

Visual Studio 6.0

VBComponents Collection

See Also   Example   Properties   Methods   Events   Specifics

Represents the components contained in a project.


Use the VBComponents collection to access, add, or remove components in a project. A component can be a form, module, or class. The VBComponents collection is a standard collection that can be used in a For Each block.

You can use the Parent property to return the project the VBComponents collection is in.

In Visual Basic for Applications, you can use Import method to add a component to a project from a file.

© 2015 Microsoft