Solved

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

Posted on 2011-02-23
3
2,004 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 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