VB 6 Managing Projects

Visual basic open a project in design view where you can modify project properties like project name and description, version information, and other similar attributes. Managing VB 6 projects is easier than you may think.

The project tab in the visual basic standard toolbar contains project properties which allow us to change settings related to a visual basic project.

Advertisements

You can also add predefined forms, menus, and modules to your project using the visual component manager. A menu in the visual component manager can be reused in many different forms. Not an only menu, but you can add other types of components like class, modules, media forms, reports, documents, etc.

Naming a Visual Basic 6 Project

To name a visual basic project you must:

  • Specify a project name when you save the project file. Every project creates a .vbp file and requires user-specified name before you save it to a disk.
  • Specify a project name from project properties under the project tab.

Example:

We want to set the project name as MyFirstVBProgram. To set this name, go to project tab > select project properties > under general tab > project name, type the name for your project and a description under project description section.

Project Properties – Naming a Project

Project Version Version Information

Larger vb projects need to keep version numbers and version information such as company name, software product name, license information, copyright information, legal trademarks, comments, etc.

You can set this information from project properties > make tab. The two options related to the project are:

  • Version number
  • Version description.

You can enter the project version number and other required details under version description. The project icon is the icon set for the startup form. Jump to next section for information on startup form.

Project version and version information

After you convert your project into an EXE file (File menu > make MyFirstVBProgram.exe), right-click the file and go to properties > details tab. You can see the version information related to the project.

Version Information

Startup Form for the Project

The startup form is the first form loaded in when the visual basic starts. You can decide the form or the object to load at startup in visual basic.

To set this value, go to project properties, under general tab> select the startup object from the drop-down and click ok.

Startup Object

In the figure above, the startup object is Form1 and loaded first.

Adding Predefined Components to a Project Form

Managing visual basic 6 projects needs two types of components frequently.

Advertisements
  • Predefined Components such as menu, modules, etc
  • ActiveX and Insertable objects such as MS Excel, MS Word, etc.

The predefined menu is added using visual basic component manager. If you have not installed the component manager, use the add-in tab to load it.

Add-In Manager

Under add-ins > click add-in manager and select the visual component manager 6.0 to install. If already installed, go to standard toolbar.

You can add the components by clicking on the visual component manager from the standard toolbar icon. This will open the window for the visual component manager.

Icon for Visual Component Manager

Predefined Menu for Form

When the window for component manager is open, click Visual basic folder > open Templates folder and select the folder for predefined component you want to add to vb project.

For example, you want to add a File menu to the project form. Then select Menu folder under Templates in the visual component manager.

Visual Component Manager

If nothing is found, create a new component by clicking on the “publish a new component” option on the top and finished the new component wizard.

Now you can select a new reusable component for your project.

Menu Component

Add ActiveX Controls

There are special controls called ActiveX that require that visual basic loads the necessary files. For example, you can connect SQL database to vb form using data grid control.

To enable the activex controls, go to project > components and select the components you want to install.

ActiveX Components

The tab insertable objects, let VB programmers insert MS Excel, MS Word, and other similar objects.

Advertisements

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version