directory picker

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

thanks in advance
does anyone have a code sample of picking a directory from a windows
form using a treeview?

thanks
 
Like so?

using (FolderBrowserDialog dlg = new FolderBrowserDialog()) {
// use ShowDialog(this) from a Form
if (dlg.ShowDialog() == DialogResult.OK) {
MessageBox.Show(dlg.SelectedPath);
}
}

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top