OpenFileDialog RestoreDirectory as no effect if Multiselect is set to true

Posted by Simon T. on Stack Overflow See other posts from Stack Overflow or by Simon T.
Published on 2010-03-31T14:23:28Z Indexed on 2010/03/31 14:43 UTC
Read the original article Hit count: 503

Filed under:

We use OpenFileDialog across our application to select files. So far, we never used Multiselect. We set RestoreDirectory to true so that any time we open the dialog we get the user to the last directory used. If I set Multiselect to true, the directory from which the files are selected is not remembered. The dialog shows the last directory used when Multiselect was set to false. By the way, we create a new instance of OpenFileDialog.

The environment:

Windows XP

VS 2008 targeting framework 3.5

C#

© Stack Overflow or respective owner

Related posts about .NET