Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var fbd = new FolderBrowserDialog())
- {
- DialogResult result = fbd.ShowDialog();
- if (result == System.Windows.Forms.DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
- {
- string[] files = Directory.GetFiles(fbd.SelectedPath);
- System.Windows.Forms.MessageBox.Show("Files found: " + files.Length.ToString(), "Message");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment