private void BrowseButton_Click(object sender, EventArgs e) { if (Directory.Exists(SavePathTextBox.Text)) { SaveFolderBrowser.SelectedPath = SavePathTextBox.Text; } if (SaveFolderBrowser.ShowDialog() == DialogResult.OK) { SavePathTextBox.Text = SaveFolderBrowser.SelectedPath; } }
private void BrowseButton_Click(object sender, EventArgs e) { try { if (Directory.Exists(SavePathTextBox.Text)) { SaveFolderBrowser.SelectedPath = SavePathTextBox.Text; } if (SaveFolderBrowser.ShowDialog() == DialogResult.OK) { SavePathTextBox.Text = SaveFolderBrowser.SelectedPath; } } catch (Exception ex) { ReportError(ex.Message, false); } }