Upgrading VB Application
This chapter looks specifically at upgrading projects created with the VB Appli-
cation Wizard. Because the wizard generates the same forms and modules for
the applications it creates, each project will have the same problems that can be
fixed in the same way. Of course, the wizard creates shell projects that are used
as a basis for development. Here we’ll discuss only the issues common to these
shell projects generated by the wizard—not ones that may occur with code you
have subsequently added.
When you create a new project in Microsoft Visual Basic 6, the New
Project dialog box gives you a number of choices as to the type of project to
create. The most common choice is Standard EXE, followed by ActiveX DLL.
These create empty projects, to which you have to add menus, toolbars, and
the corresponding logic. Since many projects have the same basic components,
Visual Basic 6 provides a VB Application Wizard that generates many of these
components for you. This wizard starts when you select VB Application Wizard
as the project type in the New Project dialog box, as shown in Figure 17-1.
C1761587x.fm Page 365 Friday, November 16, 2001 9:22 AM
Part III Getting Your Project Working
Figure 17-1 Starting the VB Application Wizard from the New Project
The VB Application Wizard asks you a number of questions about the
project you want to create, such as the type of interface you want the project to
have, the menus and submenus you need, whether strings will be stored in a
resource file, and what data access forms the application will have. After you
answer these questions, the wizard creates a project that is prepopulated with
commonly used forms and classes. This project then becomes a template for
your application. You create more forms and classes and add the business logic.
Table 17-1 lists the project items the wizard creates.
Table 17-1 Project Items Created by the VB Application Wizard
frmAbout is the form