My FolderBrowserDialog shows just the description on the top then 3 buttons
(OK, Cancel, NewFolder) at the buttom of the dialog. It doesn't desplay the
directory tree. I even specified not to show the NewFolder button and it
still has it there. How can I fix this problem?
Thanks, Alpha
private void btnDirBrowser_Click(object sender, System.EventArgs e)
{
DialogResult PathResult;
try
{
// Set the help text description for the FolderBrowserDialog.
this.fbdLogFolderPath.Description =
"Please select ATS Log files directory.";
// Do not allow the user to create new files via the FolderBrowserDialog.
this.fbdLogFolderPath.ShowNewFolderButton = false;
PathResult = this.fbdLogFolderPath.ShowDialog();
if (PathResult == DialogResult.OK)
{
//If user selected new path then put it in the txtbox
if (string.Compare(txtLogFilePath.Text,
fbdLogFolderPath.SelectedPath.ToString(),false) !=0)
{
txtLogFilePath.Text = fbdLogFolderPath.SelectedPath.ToString();
}
}
}