I am using OpenFileDialog() in a Silverlight application. When I select a file using ShowDialog() , it just locks the file until I close the application.
I can not rename or delete the folder when the application starts (silverlight application in the browser)
If I try to select any other file in any other folder, I can rename the previous folder. He seems to be loosing the handle.
My goal: I want to rename / delete a folder in the file system (manually) after the download is complete.
I know that it is not possible to point OpenFileDialog() to another folder from the code. Any pointers?
Btw, this is a Windows error message:
The action cannot be performed because the folder is open in another program. Close the folder and try again.
source share