FolderDialog problem in WPF

Posted by under C# on 11/6/2011 | Points: 10 | Views : 1226 | Status : [Member] | Replies : 1
How can i use the folderdialog control in WPF. As there is no control for this. Could anybody give me an idea that how can we use?


Posted by: Blessyjees on: 11/6/2011 [Member] Bronze | Points: 25

For getting this, add reference of the in the project and add the code below
using form=System.Windows.Forms;

using (form.FolderBrowserDialog dlg = new form.FolderBrowserDialog())
form.DialogResult result = dlg.ShowDialog();
if (result == form.DialogResult.OK)
this.txtPath.Text = dlg.SelectedPath;


Blessy Baby
Digitalmesh Softech pvt Ltd, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response