private void browsBtn_Click(object sender, EventArgs e) { if (FolderBrowseDialog.ShowDialog() == DialogResult.OK) { filePathTxt.Text = FolderBrowseDialog.SelectedPath; } }
private void BrowseButton_Click(object sender, EventArgs e) { FolderBrowseDialog.Description = "Open DBC Folder"; FolderBrowseDialog.ShowNewFolderButton = false; if (FolderBrowseDialog.ShowDialog() == DialogResult.OK) { DBCPathBox.Text = FolderBrowseDialog.SelectedPath; } }
private void button1_Click(object sender, EventArgs e) { if (FolderBrowseDialog.ShowDialog() == DialogResult.OK) { FolderPath.Text = FolderBrowseDialog.SelectedPath; } folderlist.Add(FolderPath.Text); if (FolderPath.Text != "") { string itm = FolderPath.Text; if (!(folderList.Items.Contains(itm))) { folderList.Items.Add(itm); } } }