Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Removing a Form or Module from a Project
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Removing a Form or Module from a Project
■ When you remove a form or code module from a project, it is removed from
the current project (.MAK) file and unloaded from memory. The file is not
deleted from disk.
■ To remove a form (.FRM) module:
1. Choose Remove Form from the File menu in the Form Designer
2. From the Remove File dialog, select the file to unload
3. Press Enter
If you've made changes to the form, Visual Basic prompts you to save it
before removing it from the current project.
■ To remove a code (.BAS) module:
1. Choose Remove File from the File menu in the programming environment
2. From the Remove File dialog, select the file to unload
3. Press Enter
If you've made changes to the form, Visual Basic prompts you to save
it before removing it from the current project. In addition, if the
module is the only code module in your project, or if you previously
defined it as the Start-up file, Visual Basic prompts you to choose
a new start-up file.
■ When you remove a form or code module from a project, you may need to
modify program flow and check property settings and references to form
and control names in code.