private void BrowseButton_Click(object sender, EventArgs e) { if (DialogResult.OK == FBDialog.ShowDialog()) { FolderComboBox.Text = FBDialog.SelectedPath; } }
public void btnBrowse_Click(System.Object sender, System.EventArgs e) { //// Select a new download folder FBDialog.Description = "Select download folder:"; FBDialog.ShowDialog(); if (FBDialog.SelectedPath != string.Empty) { TextBoxBrowse.Text = FBDialog.SelectedPath + ((FBDialog.SelectedPath.EndsWith("\\")) ? "" : "\\"); } }