I have a C# library containing form in which i am using Folder Browser Dialog Component to get the folder path. Form is shown during installation of my application using Custom Installer. When click on browse button to show folder browser dialog. Dialog opened but there was no folder list, blank dialog is shown with OK and Cancel button. I am using the below code:
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.RootFolder = Environment.SpecialFolder.MyComputer;
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
txtDBPath.Text = folderBrowserDialog.SelectedPath;
btnSelectFile.Enabled = true;
}
How can i solve this issue. thanks
I solved this problem.