Results 1 to 9 of 9

Thread: Save Directory Dialog?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    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...

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Save Directory Dialog?

    You'll most likely need to use a FolderBrowserDialog to manipulate folders.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    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.

  4. #4
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    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

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  5. #5
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Save Directory Dialog?

    I'll rate you just for sarcasm .

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    Re: Save Directory Dialog?

    Yeah. Putting down newbs and not discussing legitimate questions is cool...

  7. #7
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Save Directory Dialog?

    Quote Originally Posted by dabeastro View Post
    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.
    Quote Originally Posted by weirddemon View Post
    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.

    Quote Originally Posted by dabeastro View Post
    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?
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  8. #8

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    Re: Save Directory Dialog?

    Quote Originally Posted by Grimfort View Post
    I'll rate you just for sarcasm .
    I am referring to rating for sarcasm. I did not really pick up anything nasty from Grimfort.

  9. #9

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    Re: Save Directory Dialog?

    Quote Originally Posted by dabeastro View Post
    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
  •  



Click Here to Expand Forum to Full Width