I’ve read about the property on MSDN, but I still don’t understand what it does.
Gets or sets a value indicating
whether the dialog box restores the
current directory before closing.
What exactly does that mean? What does ‘restoring’ the current directory actually do? Thanks for the help.
IIRC, in windows XP when you press
Saveon aSaveFileDialog(orOpenon aOpenFileDialog) the directory where the file is saved (or opened), is set as the new current working directory (the one inEnvironment.CurrentDirectory).By setting
FileDialog.RestoreDirectory = true, when you close theFileDialogthe original working directory is restored.In Windows Vista/Seven the behavior is always as
FileDialog.RestoreDirectory = true(yes, even if you set it to false…).