This document contains the details of the process to remove paths from an existing vb project, or to ensure that there are none in it
- create a new working folder and copy all of the files for the project into that folder; this must include all image files, database files, form files and code module files; if any files are missing the project will run reliably only on the computer on which it was developed
- delete the vbp file; the vbw file in of no consequence
- start vb and choose to create a new project
- delete the form1 that is automatically added into the new project
- use Project | AddForm to add each form into the project
- use Project | AddModule to add the bas code module into the project
- use File | SaveModuleAs to explicitly save the module into your working directory; you must actually choose your working directory as the save directory
- use File | SaveFormAs to explicitly save the form into your working directory; you must actually choose your working directory as the save directory
- use File | SaveProjectAs to explicitly save the project into your working directory; you must actually choose your working directory as the save directory
- ensure that there are no paths in any properties; for any properties which use an ellipsis to find a file, you must follow the ellipsis to the copy of the file in your working directory; this includes Picture property of Image control, Icon property and Picture property of form, and DataBaseName property of Data control
- ensure that there are no paths in the code
- have the ChDrive App.Path and ChDir App.Path commands either in the Sub Main procedure or in the Form_Load procedure of the first form