|
-
Aug 1st, 2010, 01:47 PM
#1
Thread Starter
New Member
Save Directory Dialog?
I would like to modify SaveFileDialog to instead save a new directory (which will contain new files automatically generated for the user based on the name of the directory). I can produce the necessary code to carry out the intended functionality, but I want the dialog to prompt for a 'folder name' instead of 'file name' and to not display 'save as type'. Is this possible? Is there a better solution for a create new folder/directory dialog? I know about folderbrowsedialog, but I need to force the user to name a new directory and identify the location. Thanks.
Last edited by dabeastro; Aug 1st, 2010 at 02:01 PM.
Reason: Clarify...
-
Aug 1st, 2010, 02:35 PM
#2
Re: Save Directory Dialog?
You'll most likely need to use a FolderBrowserDialog to manipulate folders.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Aug 1st, 2010, 02:43 PM
#3
Thread Starter
New Member
Re: Save Directory Dialog?
Thanks for the reply. Figured out a solution. Just thought I would share for anyone else who faces a similar issue.
Basically, my app requires that users create new projects that will include several access database files. The database files are generated for the user after the 'new project' directory is created. My solution was to use the folderbrowserdialog to first prompt the user for a location and next the the user is presented with a simple where in which they must name the project. A new directory with the name of the project is then created and the database files are added. In summary, I just created my own to force the user to name and create a new directory.
-
Aug 1st, 2010, 02:46 PM
#4
Re: Save Directory Dialog?
So... you're saying you used a FolderBroswerDialog for the folders instead of a SaveFileDialog for folders?
Gotcha
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Aug 2nd, 2010, 05:40 AM
#5
Re: Save Directory Dialog?
I'll rate you just for sarcasm .
-
Aug 2nd, 2010, 10:30 AM
#6
Thread Starter
New Member
Re: Save Directory Dialog?
Yeah. Putting down newbs and not discussing legitimate questions is cool...
-
Aug 2nd, 2010, 10:55 AM
#7
Re: Save Directory Dialog?
 Originally Posted by dabeastro
Thanks for the reply. Figured out a solution. Just thought I would share for anyone else who faces a similar issue.
Basically, my app requires that users create new projects that will include several access database files. The database files are generated for the user after the 'new project' directory is created. My solution was to use the folderbrowserdialog to first prompt the user for a location and next the the user is presented with a simple where in which they must name the project. A new directory with the name of the project is then created and the database files are added. In summary, I just created my own to force the user to name and create a new directory.
 Originally Posted by weirddemon
So... you're saying you used a FolderBroswerDialog for the folders instead of a SaveFileDialog for folders?
Gotcha
That's what I'm reading too.
 Originally Posted by dabeastro
Yeah. Putting down newbs and not discussing legitimate questions is cool...
How are you even coming to this conclusion? Going for way off base are we?
-
Aug 2nd, 2010, 11:08 AM
#8
Thread Starter
New Member
Re: Save Directory Dialog?
 Originally Posted by Grimfort
I'll rate you just for sarcasm  .
I am referring to rating for sarcasm. I did not really pick up anything nasty from Grimfort.
-
Aug 2nd, 2010, 11:19 AM
#9
Thread Starter
New Member
Re: Save Directory Dialog?
 Originally Posted by dabeastro
I am referring to rating for sarcasm. I did not really pick up anything nasty from Grimfort.
Or Weriddemon.
Tags for this Thread
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
|