In a C# 2008/2010 desktop application, I need to be able to allow users the ability
to select a file they need to work with. There needs to be a default directory path. However I need to be able to allow users the ability to select files from whatever directory path they have access to.
Thus can you tell me. show me code, and/or point me to a url I can use as a reference to accomplish my goal?
C# select file from directory path
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted May 29, 2013, 7:15 PM EDT
hi,
In this case you can use OpenFile Dialog control.
it has many useful property that can be use to accomplish your goal like InitialDirectory with the help of this you can set default directory.
also Filter property with help of this you can to filter extension of files.
Please refer
http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx
hope this will help you.
Pankaj PandeyRank #642 · 3.7K reputationPosted May 29, 2013, 9:51 PM EDT
http://www.c-sharpcorner.com/UploadFile/RPattinson/openfiledialog-in-C-Sharp/
http://msdn.microsoft.com/en-IN/library/aa287592(v=vs.71).aspx
http://www.codedigest.com/Articles/CSHARP/258_How_to_call_the_Windows_API_FileOpen_Dialog_.aspx
if helpfull then mark as answred