OpenFileDialog - InitialDirectory problem
Thanks
LTCA
Thanks
LTCA
this.openFileDialog1.Reset();
this.openFileDialog1.Multiselect = true;
this.openFileDialog1.Filter = @"ACH files |*.ach|All Files |*.*";
this.openFileDialog1.InitialDirectory = this.SourceFolder;
LTCA
Before you call .ShowDialog on it, you only need to reset the initial directory, and not anything else.
This should reset the InitialDirectory every time:
this.openFileDialog1.InitialDirectory = this.SourceFolder;
My bad--I was trying it without really opening any file. If you open a file, it behaves as you have said.
It looks like you need this.openFileDialog1.Reset(); which is lame, because then you have to reset everything, as you have stated. I see no way around this.
-Matt-