I created a WPF application where you can open some Open / SaveFileDialogs. On my PC, it remembers the directory that I was last in, I used such a dialog box and sets it as the initial directory when opening another such dialog. But on my colleague, he does not remember the PC.
The exact class I'm using is Microsoft.Win32.OpenFileDialog . We both installed WinXP.
What could be the reason for this?
UPDATE: Apparently, this problem has not yet been resolved. I found out that this also happens on my PC. I found that when I select several files and open a click or press the enter key, it does not save the place where it was. But when I select only one file and the watch opens or presses the enter key (or double-clicks on it), then it remembers the location.
Here is the code:
public override void Execute(object parameter) { OpenFileDialog dialog = new OpenFileDialog(); dialog.DefaultExt = ".txt"; dialog.Filter = "Text files (.txt)|*.txt"; dialog.Multiselect = true; dialog.Title = "Select a trace file";
source share