Results 1 to 4 of 4

Thread: Remembering last directory a file was saved to??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Remembering last directory a file was saved to??

    Hello,

    Let's say I have a "Save" button on a form. The initial directory is "C:\" when the savefile dialog box appears. Suppose I save my file to "C:\temp". Now, I want to save another file. How do I have the program "remember" the last directory it saved a file to?

    Thanks!

  2. #2
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    You could save it to the registry and then next time you want to save, have it load the path from the registry.
    -Rob

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Just write the last location to disk however you like (txt, xml...) and set the InitialDirectory property of the SaveFileDialog before showing it.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Ah...

    Ah...sort of like an .ini file.....right?

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