Configure the folder view dialog box to display the path

Does anyone know what is the easiest way to configure System.Windows.Forms.FolderBrowserDialog, so the path can be entered using text in the text box below the tree.

I want this to make it easy to select unmapped UNC paths.

It looks like this KB contains some supporting information.

+23
c # winforms
Feb 23 '09 at 6:53
source share
2 answers

Only this weekend I need it. I looked and looked, but could not find it. I enjoyed writing this based on this article in KB, and some other things. Here you go. FolderBrowserDialogEx

Full source code. Free. License MS-Public.

FolderBrowserDialogEx

Code for use:

var dlg1 = new Ionic.Utils.FolderBrowserDialogEx(); dlg1.Description = "Select a folder to extract to:"; dlg1.ShowNewFolderButton = true; dlg1.ShowEditBox = true; //dlg1.NewStyle = false; dlg1.SelectedPath = txtExtractDirectory.Text; dlg1.ShowFullPathInEditBox = true; dlg1.RootFolder = System.Environment.SpecialFolder.MyComputer; // Show the FolderBrowserDialog. DialogResult result = dlg1.ShowDialog(); if (result == DialogResult.OK) { txtExtractDirectory.Text = dlg1.SelectedPath; } 

Features: shows editbox, shows the full path in the edit field. It can be used to view printers or computers, as well as files + folders or just folders.

+34
Feb 24 '09 at 6:49
source share

Try to execute the folder browser code project - this allows you to configure the dialog in different ways.

Also in social.msdn.microsoft.com there is a message offering to create your own form for you and even offer code for it.

+3
Feb 23 '09 at 15:09
source share



All Articles