FolderBrowserDialog dlg = new FolderBrowserDialog(); if (!string.IsNullOrEmpty(txtPath.Text)) dlg.SelectedPath = txtPath.Text; if (dlg.ShowDialog() == DialogResult.OK) { txtPath.Text = dlg.SelectedPath; } //csharp/192