www.globabsystemsdesign.com
 
 
Visual Basic Tips / Determining which files need to be distributed with your application
There is a fairly simple method of determining which files actually need to be distributed with your newly finished project. First Save the project.

Select TOOLS, CUSTOM CONTROLS from the Visual Basic IDE menu. On the resulting dialog box shown:

Check mark the three check boxes in the "Show" frame at the bottom right of the dialog box. This will give you the currently selected controls which are on the toolbar in Visual Basic.

NOTE: In Visual Basic 5.0 and 6.0 you will find this under the menu entry PROJECT, COMPONENTS as Microsoft in their infinite wisdom has changed the menus in the IDE since version 4.0. The first two examples show the Visual Basic 4.0 dialogs, and the third one shows the dialogs you will encounter in Visual Basic 5.0 and above.

Now try to deselect any of the items shown in the "Available Controls" section. If they are in use by your project you will be unable to remove them, and the following warning message will appear.

Try to remove each item you're unsure of in turn, then close the dialog and proceed to the next step below. Now select TOOLS, REFERENCES on the Visual Basic IDE menu. You will be treated to the following dialog box:

In this dialog you can select which references to leave in your project, again, if you try to uncheck a reference which is in use by your project you will get the following error dialog.

Try to remove each reference in turn, leaving those which you cannot remove. Save project.

Now exit Visual Basic, and run the Application Setup Wizard. Only files needed by your application will be included with your distribution.

Here is the Components controls dialog from Visual Basic 5.0 and 6.0. Note that there is still a checkbox for "Selected Items Only". Check mark it to speed up the process of deselecting controls.

Here's the cannot remove dialog for these versions. Note that there is a help button for this one. 8-)

The references dialog for Visual Basic 5.0 and 6.0 looks the same as the 4.0 version, except that it includes the project name on it's title bar which version 4.0 does not.

C Ray Parrish - Cottage Grove, Oregon