Solved

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

Posted on 2011-02-23
3
1,902 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now