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

  1. 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
  2. delete the vbp file; the vbw file in of no consequence
  3. start vb and choose to create a new project
  4. delete the form1 that is automatically added into the new project
  5. use Project | AddForm to add each form into the project
  6. use Project | AddModule to add the bas code module into the project
  7. use File | SaveModuleAs to explicitly save the module into your working directory; you must actually choose your working directory as the save directory
  8. use File | SaveFormAs to explicitly save the form into your working directory; you must actually choose your working directory as the save directory
  9. use File | SaveProjectAs to explicitly save the project into your working directory; you must actually choose your working directory as the save directory
  10. 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
  11. ensure that there are no paths in the code
  12. 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