Solved

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

Posted on 2011-02-23
3
2,030 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

628 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