Cyrix
Cyrix

Reputation: 266

Get last used directory

when the SaveFileDialog opens for the first time it has an initial directory. I would like to get that path.

And also if I go into C:\Temp and save a file. Next time I open the SaveFileDialog the program will remember this. I would like to have this path also. Or do I have to save this manual in my program?

Best regards R

Upvotes: 1

Views: 1166

Answers (1)

Hari Prasad
Hari Prasad

Reputation: 16956

You have to set FileDialog.RestoreDirectory to true.

Upvotes: 4

Related Questions