-
Alright is there a way to have the common dialog box never be able to switch the path that is given. for example. Say I only want the user to be able to save and open files from the folder happy in the c drive. So now I can say to start in the directory C:\happy\ but is there a way so that the user can't leave that folder. I would use file boxes but they are so un professional looking compared to the common dialog. Thanks!!
-
If they're not able to change the path, what's the point of prompting them with a common dialog?
Why not just prompt them for a filename (either on the form, or by using Inputbox), then you can save the file to the appropriate path and they won't be able to change it...
-
I believe this will make the CommonDialog stay in the InitDir
Code:
CommonDialog1.Flags = cdlOFNNoChangeDir
Sunny
-
Just to say my twopenneth - If you want them to stay in an existing directory. Why not use the Input box for file name, coupled with the "File List Box" - one of the forgotten controls of VB!
-
yah, those suggestions should work for you. I'm with them all...just use a file list box control.
Even better... go to http://www.mvps.org/ccrp/ and look around. This is a bunch free controls that do cool stuff like emulate explorer windows.
-
Like I said before I would use file list box but they look like crap. The commondialog control lactually looks good. Input boxes look like crap. I mean how many programs (thats are professional)actually have an input box show up. I have tried the flags code and that doesn't work doe some unknown reason. I am gonna look at that web site you gave me thanks!!