1. Home
  2. Computing & Technology
  3. Visual Basic

Selecting the Components Used in the VB6 Package and Deployment Wizard (VB6)
How to make sure that only the components you want are in the VB6 setups

By Dan Mabbutt, About.com

An About Visual Basic reader noted that, "I have a well-organized shop, with many tools, but the fact that I own them doesn't mean I have to use every one of them on a project." He said that the VB6 Package and Deployment Wizard (PDW) was adding all the tools in his ToolBox to his setups and he was spending a lot of time creating projects with only the tools in the ToolBox that were actually required. He needed a way to display or determine which items in the Toolbox are associated with which components.

You can find the file name of any component in a VB6 project using the Object Browser (on the Tool Bar or under the View menu). If you check the VB6 library in the Object Browser, you will see the standard components listed (ComboBox, CommandButton, and so forth). The file name is also at the bottom of the dialog window when the component is added to the toolbox.

As an example, MSFlexGrid is an example of a component that has to be added to the ToolBox before it can be used. After this component has been added, the Object Browser has a new library called MSFlexGridLib in it. The file and file path for this component is listed at the bottom of the Object Browser (in some views, it might be necessary to double click the library name at the bottom to display the file and file path).

--------
Click Here to display the illustration
Click the Back button on your browser to return
--------

If you don't want this component to be added to your Setup using PDW, you can uncheck the component in the Included Files dialog of PDW near the end of the wizard.

--------
Click Here to display the illustration
Click the Back button on your browser to return
--------

You can also add files that are not part of the normal dependency scheme to your package. PDW assumes that any file in a saved script needs to be present unless you explicitly remove it.

More Visual Basic Quick Tips
Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Quick Tips
  5. Selecting Components - VB6 Package and Deployment Wizard

©2009 About.com, a part of The New York Times Company.

All rights reserved.