Reusing Components in Your Project

See Also

The Visual Component Manager provides several ways to reuse components in your Visual Basic or Visual J++ project, depending on the type of item selected.

You can also reuse components in VC++ or other programming environments, although you will not directly interact with these tools. In these cases, the components are copied from the repository database to your local hard disk, and COM components are registered in your system registry. You will have to add them to the VC++ or other language project manually.

Some typical examples of reusing components are listed below.

To add a new project to your Visual Basic project group

  1. Locate and select the desired component item in the Explorer or Contents pane.

  2. On the shortcut menu, click Add to Project Group.

To add a new project to your Visual J++ or Visual InterDev Solution

  1. Locate and select the desired component item in the Explorer or Contents pane.

  2. On the shortcut menu, click Install on this computer.

To add a new ActiveX Control to your project

  1. Locate and select the desired ActiveX Control item in the Explorer or Contents pane.

  2. On the shortcut menu, click Add to Toolbox.

To add other COM objects to your project

  1. Locate and select the desired object in the Explorer or Contents pane.

  2. On the shortcut menu, click Add to Project.

To add a new form to your Visual Basic project

  1. Locate and click the desired form item in the Explorer or Contents pane.

  2. On the shortcut menu, click Add to Project.

To use a published COM component in Visual C++ or other environments

  1. Locate and click the desired form item in the Explorer or Contents pane.

  2. On the shortcut menu, click Install on this computer.

To use a other components in Visual C++ or other environments

  1. Locate and click the desired form item in the Explorer or Contents pane.

  2. On the shortcut menu, click Save to disk.

A shortcut method of adding most items to your project is to double-click on the item's icon in the Contents pane