E
Elder Hyde
I just tried it on my development machine like this:
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.Cookies;
folderDialog.ShowDialog();
Console.WriteLine(folderDialog.ShowNewFolderButton);
Console.ReadLine();
And "false" is printed to the console, but the "New Folder" button is
still shown. Seems you got it right, it's a bug.
About this, however:
Oh, yes, you can, you pissed-off idiot. Here's how:
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.MyComputer;
folderDialog.SelectedPath = @"C:\Temp\New Folder";
folderDialog.ShowDialog();
You can set anything in your selected path from there. Try it.
Elder.
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.Cookies;
folderDialog.ShowDialog();
Console.WriteLine(folderDialog.ShowNewFolderButton);
Console.ReadLine();
And "false" is printed to the console, but the "New Folder" button is
still shown. Seems you got it right, it's a bug.
About this, however:
There is also NO WAY to set the root directory to MY OWN path. It MUST be
a SpecialFolder , can we have this so we can set it to any path of our own
choosing?
Oh, yes, you can, you pissed-off idiot. Here's how:
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.MyComputer;
folderDialog.SelectedPath = @"C:\Temp\New Folder";
folderDialog.ShowDialog();
You can set anything in your selected path from there. Try it.
Elder.