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
 
Back
Top