how can i find the path of existing vb 6.0 program to place it for running that program. now i have errors on it as "Error during load "Form1.form"
Printable View
how can i find the path of existing vb 6.0 program to place it for running that program. now i have errors on it as "Error during load "Form1.form"
You mean App.Path ?
Hi Manikandan... Welcome to the forums...:wave:
Could you please provide more details of what you are looking for ?
App.Path will give you the application's path. (Baja already stated that)
Are you from Kerala ? :)
I think he added Form1 when the project was in one folder, but now the project has moved to a different folder and VB is still looking form Form1 in the old folder.
That has happened to me before.
Exactly, but you want to Remove it (which destroys the old path), then Add it through the Existing tab, which will put it back with the correct path.
Well... the easy way for me would be to edit the VBP file :D
I was actually waiting for someone to mention the vbp file. :D
My vbp file tells me what the names of the forms are, not where they are stored.Quote:
Originally Posted by Sample Project1.vbp
This is very interesting. I never thought that the VBP wasn't encripted or in some way compiled!!
-- That's amazing!!
Ever tried opening FRM file in Notepad? ;)
!?Really?!
Nope. They're plain text.
When you change something in the folder, like my Projects, I have a separate folder for Forms, and Form Data placed in the same folder together. Then Modules, etc. When you change something, like the name of the folder. The VBP doesn't recognise the files. Then you have to patch them into the VBP again, as per the norm. This only doesn't apply when you add or delete a file, from the folder. But when you rename the folders, etc. Then yes, it will...
eg:
Add Form and Add Module, until they are all there again.
-- That is what, I had and did just today on my systems at home, at work and at College!!
Thanks...:wave: