.net OpenFileDialog changing the CurrentDirectory

Posted by meowing on Stack Overflow See other posts from Stack Overflow or by meowing
Published on 2010-04-19T06:45:21Z Indexed on 2010/04/19 6:53 UTC
Read the original article Hit count: 447

Filed under:
|

Hi,

I am using OpenFileDialog. But using it changes the Environment.CurrentDirectory. Using the RestoreDirectory property solves this issue, but I'm using external dlls that I can't control that don't use RestoreDirectory.

Is there a way to make it true as default? Or is there any other solution to this annoying problem?

Thanks.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#