I work in C # and can get SaveFileDialog to reset in InitialDirectory in Windows XP, but the same code does not work in Windows 7. Each time a dialog appears in Windows 7, it opens the last directory saved or opened instead of the directory that I install as the source directory. I tried changing the RestoreDirectory parameter and set AutoUpgradeEnabled to false, but none of them worked.
I cannot provide sample code, but I can give you an idea of what is going on:
Each time a user tries to save a file that is being used by someone else, they are given the option to save as. If they click yes, a new SaveFileDialog is created with the original set of directories, and RestoreDirectory is false. The problem is that the popup dialog does not open in the source directory.
My question is: are there any known issues when this does not work in Windows 7 or Vista? If not, can you provide some pointers to what to look for to fix this problem? Should I have only one SaveFileDialog object created during this process and not have it local to the method?
Thank.
source
share