BUG + FEATURE REQUEST: FolderBrowserDialog = broke and useless

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:
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.
 
N

Nick

It works for me fine. I took your following code and pasted it into my app
and it worked with no probems. I would suggest you try and verify that all
the assemblies you are using are Version 1.1 by opening up the Project in
the text editor and verifying all paths.

Also people don't take kindly to your sarcastic attitude and your assumption
this is a bug right off the bat with out even talking to anybody on the
forum. Plus your know it all attitude is really annoying and that is why
people are telling you not to ask any more questions on this forum.
Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

This statment just sums up how moronic you are. First of all this is a
en-US forum, most of us dont understand what you mean by "bugger all", so it
really detracts from anything you say in that sentace. In addion your
pompus attitude by declaring something is broken before even asking the
forum if they can see any problems with your code just is annoying. Plus, I
don't know about the rest of the people but you sarcastic use of "Genius",
just makes you look like a no nothing beginer, that won't try and solve a
problem before declaring defeat.

I hope you grow up and realize this is hear for support not your little
bitch session that you would have with your friends.

Nick
 
E

Elder Hyde

Hey Nick,

I tried setting the show new folder button property to false, and still
the button is shown. Wonder if it's a bug for a specific .NET version. I
happen to be using VS.NET 2003 as well. Which version of VS.NET are you
using? I've never installed Framework 1.0, so I'm pretty sure it's 1.1
all the way.

Thanks
Elder
 
N

Nick

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.MyComputer;
folderDialog.SelectedPath = @"C:\Temp\New Folder";
folderDialog.ShowDialog();

Do this and stop bugging us.
 
B

Bill Styles

Nick said:
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.RootFolder = Environment.SpecialFolder.MyComputer;
folderDialog.SelectedPath = @"C:\Temp\New Folder";
folderDialog.ShowDialog();

Do this and stop bugging us.

That sets the selected folder but not the root folder; is there a way to
limit the user to selecting a folder under a given path if that path is not
a known "SpecialFolder"?

(Not that I want to support the OP in any way given the childish posts but I
have had similar requirements before and don't see an obvious way to
accomplish it)
 
N

Nick

I am using Framework 1.1 on Windows XP with no problem. Maybe it is just an
error in the DLL calls between the different version of Windows. I have
never seen this problem before. I am willing to bet that this has something
to do with the Windows DLL that supplies these windows more than the .Net
control it self. Let me check it out on a couple machines and see what I
get.
 
E

Elder Hyde

Oh, by the way, my OS is Windows 2000. Wonder if that's what's causing
the problem. Anyway, let us know :)

Thanks!
Elder
 
E

Elder Hyde

That sets the selected folder but not the root folder; is there a way to
limit the user to selecting a folder under a given path if that path is not
a known "SpecialFolder"?

Ahh yes. After re-reading some messages in this thread I realized that
the original poster wanted something like this (i.e.: a way to set a
custom RootFolder so users can't select anything above it). I didn't see
it the first time because the person's communication style is annoying
and idiotic.

I see no way of accomplishing this with FolderBrowserDialog either.
Maybe his/her's feature request is a legit one after all :) Now if only
someone works on his/her communication skill...

Elder.
 
N

Nick

There are some open source version of this out there that came out before
version 1.1. You might want to check those out. They are availible on
CodeProject.
 
D

Daniel O'Connell

Because my original post was to a different group, I will explain this
issue.

The feature used to hide the new folder button was added in the 6.0 version
of hte library that implements SHBrowseForFolder(I'm not sure what it is),
most 6.0 libraries are available only via windows XP, however shlwapi is
distributed via IE6(I don't know if installing it will solve the problem
though). If you are using a previous version, the bit field that tells the
control to hide the button is ignored.
As for the other request, in SHBrowseForFolder you have to pass a PIDL list
to target a root folder. It requires some work to get going(an API call),
and is not as easy to work with from a class perspective. The chocie to use
the SpecialFolder enumeration was probably made more for simplicity than for
intentional limitations. You would ideally want a way to easily specify
special folders as well as a given path, which is hard to do.
 
A

a

I did a search on GOOGLE, and there are many posts dating back to 2002 that
document the 'non-working' status of the ShowNewFolderButton property in
W2K.

Nothing wrong with posting questions in here, but often a quicker answer can
be found by Google-ing it.

Kevin
 
G

Guest

Hello IDIOT, that DOES NOT prevent traversing to the parents of youre
SELECTED NODE. That does NOT select the root. IDIOT.

Tard.

That only selects youre STARTING point, not the ROOT of the tree. Go back
to sleep troll.
 
G

Guest

Ok how about somebody make a template for feature requests and bug reports.

Maybe something similar to MS's RAID db templates so its easier for them to
read.
 
E

Elder Hyde

See, this is why your message doesn't get through to people.

Sorry I called you idiot--it turned out that you have some kind of
disorder, huh? Tough, you idi.. I mean, you mentally not-quite-right
person you. I shouldn't have called someone who's not quite right in the
head in the first place an idiot. My bad, my bad. I wasn't being PC!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top