I am looking to make a small windows utility that will let the user browse to a file directory. Is there a good C# method (Windows) to execute this?
Asked
Active
Viewed 65 times
-3
-
Why not use openFileDialog? – Willy David Jr Feb 13 '17 at 01:02
-
A file or a directory? wpf or forms? – rmojab63 Feb 13 '17 at 01:07
-
possible duplicate: http://stackoverflow.com/questions/5622854/how-do-i-show-a-save-as-dialog-in-wpf – rmojab63 Feb 13 '17 at 01:08
-
1Possible duplicate of [How do you configure an OpenFileDialog to select folders?](http://stackoverflow.com/questions/31059/how-do-you-configure-an-openfiledialog-to-select-folders) – J.C Feb 13 '17 at 03:33
1 Answers
1
If you are using WinForms, you want FolderBrowserDialog.
See here: https://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog(v=vs.110).aspx

Tim
- 5,940
- 1
- 12
- 18