c# - Setting the initial directory of an SaveFileDialog? -


I want a SaveFileDialog with the following behavior:

  • First when you , Then it goes to "My Documents".

  • Next, it goes to the last selected folder, what is the best way to accomplish this?

If I have not set the initial directory, then it goes to the directory of axle - which I do not want. It remembers the last selected directory - even between frequencies.

If I set the initial directory, then it does not remember the last selected directory. Of course, I can save the last selected directory in the registry :( But I'm looking for a better solution.

  Savefile dialog dialog = new SaveFileDialog (); // ??? InitialDirectory Any advice?   

< / Pre>

text "itemprop =" text ">

You must set correct as well as property.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -