Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-23
3
Medium Priority
?
2,133 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 1500 total points
ID: 34959347
0
 

Author Closing Comment

by:netformx
ID: 35837173
no comments
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

772 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