Gets or sets a value indicating whether the dialog box restores the current directory before closing.
[Visual Basic] Public Property RestoreDirectory As Boolean [C#] public bool RestoreDirectory {get; set;} [C++] public: __property bool get_RestoreDirectory(); public: __property void set_RestoreDirectory(bool); [JScript] public function get RestoreDirectory() : Boolean; public function set RestoreDirectory(Boolean);
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.
FileDialog Class | FileDialog Members | System.WinForms Namespace | System.security.Permissions.FileDialog.InitialDirectory