|
-
Oct 4th, 2000, 05:58 PM
#1
Thread Starter
Hyperactive Member
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!!
-
Oct 5th, 2000, 06:42 AM
#2
Frenzied Member
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...
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Oct 5th, 2000, 06:54 AM
#3
I believe this will make the CommonDialog stay in the InitDir
Code:
CommonDialog1.Flags = cdlOFNNoChangeDir
Sunny
-
Oct 5th, 2000, 07:18 AM
#4
New Member
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!
-
Oct 5th, 2000, 08:12 AM
#5
Frenzied Member
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.
-
Oct 5th, 2000, 01:55 PM
#6
Thread Starter
Hyperactive Member
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!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|