How do I use the OpenFileDialog class such that it opens on the Network area as default?

Posted by xarzu on Stack Overflow See other posts from Stack Overflow or by xarzu
Published on 2010-05-12T19:51:08Z Indexed on 2010/05/12 19:54 UTC
Read the original article Hit count: 376

Filed under:
|
|

How do I use the OpenFileDialog class (in C#, WPF etc.) such that it opens on the Network area as default?

This does not work:

  OpenFileDialog openFileDialog1 = new OpenFileDialog();
  openFileDialog1.InitialDirectory = "Network";

I also tried having "\" as an InitialDirectory and that did not work.

I also tried having "\\" as an InitialDirectory and that did not work either.

© Stack Overflow or respective owner

Related posts about openfiledialog

Related posts about c#