OpenFileDialog

  • Thread starter Thread starter abcd
  • Start date Start date
A

abcd

I am using OpenFileDialog.

I am using REstoreDirectory = true

When I successively open the file dialog the last directory opened is not
remembered. How should I achieve this.

Thanks
 
From the MSDN on FileDialog.RestoreDirectory:

true if the dialog box restores the current directory to its original value
if the user changed the directory while searching for files; otherwise,
false. The default value is false.

If you want it to remember the last directory that the file was from, leave
it false. If you have to have it true, you will have to remember the
directory yourself and set it before opening the dialog.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top