Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button2_Click_1(object sender, EventArgs e)
- {
- FolderBrowserDialog fbd = new FolderBrowserDialog();
- DialogResult result = fbd.ShowDialog();
- if (result == System.Windows.Forms.DialogResult.Cancel)
- {
- textBox3.Text = Environment.CurrentDirectory;
- return;
- } else{
- String[] files = Directory.GetFiles(fbd.SelectedPath);
- textBox3.Text = files[0];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement