/// <summary> /// Open folder selection dialog for manual selection of source folder /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void SourceFolderButton_Click(object sender, EventArgs e) { if (SourceFolderDialog.ShowDialog() == DialogResult.OK) { this.SourceFolderName.Text = SourceFolderDialog.SelectedPath; SourceFolderName.Focus(); } }
private void BrowseButton2_Click(object sender, EventArgs e) { DialogResult result = SourceFolderDialog.ShowDialog(); try { if (result == DialogResult.OK) { SourceFolder.Text = SourceFolderDialog.SelectedPath; } } catch (IOException) { MessageBox.Show("Source Folder Error!"); } }