How to retrieve the most recently used directory
Posted on 2004-08-04
When I use OpenFileDialog, and do not set the InitialDirectory, the dialog defaults to the directory previously selected by the user. This works even when the app is closed and re-started.
How can I retrieve that most recently opened directory, so I can use it in a FolderBrowserDialog()?
I looked through Environment and Application namespaces, but every path I see points to a fixed directory somewhere, not to the most recent directory selected by the user.