You can add:
1- the folder browser dialog (for the folder) and use it Like This:
`if(folderBrowserDialog1.ShowDialog() != DialogResult.Cancel)
string str = DialogFolderBrows.SelectedPath;`
2- Open the file dialog box (for the file)
and use it Like This:
`if(openFileDialog1.ShowDialog() != DialogResult.Cancel)
string str = DialogOpenFile.FileName;`
source
share