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?
Loading
Jignesh TrivediPosted May 29, 2013, 11:15 PM
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 PandeyPosted May 30, 2013, 1:51 AM
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