I have a openfiledialog in my application. I do not set the initial directory and user can navigate to open file and import it to the application (for example imports excel file from C:\ Test location). Next time, when user wants to open another file, system (by default, since initial directory is not set) remember the previous location and openfiledialog opens in that directory (C:\ Test). Is there anyway to retrieve the path that openfiledialog opens? I am sorry if I couldn't explain my problem well and thanks for the help.
Asked
Active
Viewed 418 times
0
-
possible duplicate of [OpenFileDialog default path](http://stackoverflow.com/questions/9980262/openfiledialog-default-path) – Hans Passant Sep 29 '12 at 21:56
-
So I have to goto registry to read the path file? – Amir Sep 29 '12 at 22:00
1 Answers
2
Registry is hard to handle, I would suggest that you use Application Properties instead.

Aleksandar Toplek
- 2,792
- 29
- 44