Link to home
Start Free TrialLog in
Avatar of pentomino
pentomino

asked on

Folder that VB shows for open

How can I change the default folder the Visual Basic 6.0 displays when I select the "open" menu item?


Thanks
ASKER CERTIFIED SOLUTION
Avatar of bja1
bja1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pentomino
pentomino

ASKER

bja1

Thanks, but what do I do with the code?  I am a bit of a Novice.


Pentomino
Ok I tell you how to design a demo project so you can have a play with it and learn what you can and can't do with it.

Create a new project.
Add a command button.
Add a Common dialog control (should be on the default componant bar)
Call the Dialog control com1
Double click on the command button and paste the code I have put in my answer behind it.

To change the folder on the open folder just change the follow string after the .init  

Hope this helps
Bja1

I don't think you understand, or maybe I didn't make myself clear.

I wanted the menu item  File->Open project  to always start in a certain folder.  Not when a program is running,, but when I start up Visual Basic, and want to open a project.


Hope I am clear on what I need.

Pentomino
Yes you are clear. I understand what you want. I'm looking for the same thing. I don't known if an external option exist to do that for the Exist Tab of the dialog Box.
But I have a Vb Add-in to recall the last programm loaded in the previous Vb loggin.
It's a VB6 version of an VB5 release is on
http://mainsoft.com ( called Restore ).
If you wish the VB6 release send me your
email to mrodenas@club-internet.fr.
Bye Michel