Solved

OpenFileDialog (C#) does not open initial directory on network path

Posted on 2011-02-23
3
1,943 Views
Last Modified: 2012-05-11
Hi
I have WinForm application that contains OpenFileDialog.
The initial directory is a SharePoint directory (UNC).
The problem is that sometimes the OpenFileDialog "ignore" the initial directory and open it on a local drive.
does anyone familiar with that problem and can help?
Thanks
0
Comment
Question by:netformx
3 Comments
 
LVL 9

Expert Comment

by:s_chilkury
ID: 34959315
Use the code to set the default directory to open:

OpenFileDialog dialog = new OpenFileDialog();
dialog.InitialDirectory = {networkpath};
0
 
LVL 14

Accepted Solution

by:
robasta earned 500 total points
ID: 34959347
0
 

Author Closing Comment

by:netformx
ID: 35837173
no comments
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question