By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,356 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,356 IT Pros & Developers. It's quick & easy.

BUG + FEATURE REQUEST: FolderBrowserDialog = broke and useless

P: n/a
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #1
Share this Question
Share on Google+
25 Replies


P: n/a
Considering that I could set both my own path and have the "make new
folder" button go away, I'd say you are wrong.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
For a laugh, try web browsing with Opera's User Mode with Nostalgia enabled
Jul 21 '05 #2

P: n/a
Cor
Hi,

I do not see the problem, there is a bug in this control concerning path
names longer than 128 characters, but this I did test and works like I would
expect.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.SelectedPath =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

I pasted that personal folder also in it.

I hope this helps?

Cor

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #3

P: n/a
Considering I just did that and it fails.

What version are u using because I am on 2003 upgraded from 2002 and its NOT
working.

Just because it works for you doesnt mean it isnt buggy on other setups.

You assume the world orbits around you.

That code I pasted FAILS on mine.

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opr1nroj06hntkfz@localhost...
Considering that I could set both my own path and have the "make new
folder" button go away, I'd say you are wrong.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
For a laugh, try web browsing with Opera's User Mode with Nostalgia enabled
Jul 21 '05 #4

P: n/a
I DONT want to use the SPECIAL BLOODY FOLDER hence the feature request. I
cannot put in MY OWN path.

And I have the show new folder set to FALSE as you can see and its SHOWN on
the dialog. So its a version bug that you dont have but I do.

"Cor" <no*@non.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
Hi,

I do not see the problem, there is a bug in this control concerning path
names longer than 128 characters, but this I did test and works like I would expect.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.SelectedPath =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

I pasted that personal folder also in it.

I hope this helps?

Cor

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.

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?

Thanks


Jul 21 '05 #5

P: n/a
Let me clarify the Special Folder request

I want to set the .RootFolder to MY OWN root. Not a predefined SPECIAL
FOLDER.

And I cannot get that NewFolder button to go away with either TRUE OR FALSE,
so its a bug in my version and not yours. Geddit.

"Cor" <no*@non.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
Hi,

I do not see the problem, there is a bug in this control concerning path
names longer than 128 characters, but this I did test and works like I would expect.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.SelectedPath =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

I pasted that personal folder also in it.

I hope this helps?

Cor

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.

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?

Thanks


Jul 21 '05 #6

P: n/a
Well, it works when compiling with the csc.exe coming with Framework 1.1
About the setting your own definition of root, are you trying to prevent
users from accessing parent folders or just setting a startup folder which
works with
SelectedPath = "C:\\Windows\\System32";

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
For a laugh, try web browsing with Opera's User Mode with Nostalgia enabled
Jul 21 '05 #7

P: n/a
I would say dont bother asking for help on this newsgroup again

<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #8

P: n/a
That doesnt restrict the parent accessing.


"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opr1nsoumvhntkfz@localhost...
Well, it works when compiling with the csc.exe coming with Framework 1.1
About the setting your own definition of root, are you trying to prevent
users from accessing parent folders or just setting a startup folder which
works with
SelectedPath = "C:\\Windows\\System32";

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
For a laugh, try web browsing with Opera's User Mode with Nostalgia enabled
Jul 21 '05 #9

P: n/a
I would say ignore or bugger off tard.
"James Westgate (Crainiate)" <ja***@nospam.crainiate.com> wrote in message
news:Oo*************@tk2msftngp13.phx.gbl...
I would say dont bother asking for help on this newsgroup again

<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.

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?

Thanks


Jul 21 '05 #10

P: n/a
Welcome to the internet tard, youre new around here arnt u. Let me show you
around.

You dont own shit on here so bugger aff.
"James Westgate (Crainiate)" <ja***@nospam.crainiate.com> wrote in message
news:Oo*************@tk2msftngp13.phx.gbl...
I would say dont bother asking for help on this newsgroup again

<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.

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?

Thanks


Jul 21 '05 #11

P: n/a
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.
Jul 21 '05 #12

P: n/a
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

<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl... Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #13

P: n/a
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
Jul 21 '05 #14

P: n/a
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.

<di********@discussion.microsoft.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Let me clarify the Special Folder request

I want to set the .RootFolder to MY OWN root. Not a predefined SPECIAL
FOLDER.

And I cannot get that NewFolder button to go away with either TRUE OR FALSE, so its a bug in my version and not yours. Geddit.

"Cor" <no*@non.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
Hi,

I do not see the problem, there is a bug in this control concerning path
names longer than 128 characters, but this I did test and works like I

would
expect.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.SelectedPath =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

I pasted that personal folder also in it.

I hope this helps?

Cor

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.

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?

Thanks



Jul 21 '05 #15

P: n/a
"Nick" <ne**@zigamorph.com> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl
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)

--
C# newbie... posts are probably inaccurate, inelegant or both

Jul 21 '05 #16

P: n/a
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.

"Elder Hyde" <no_way> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
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

Jul 21 '05 #17

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

Thanks!
Elder

Nick wrote:
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.

"Elder Hyde" <no_way> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
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


Jul 21 '05 #18

P: n/a
> 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.
Jul 21 '05 #19

P: n/a
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.

"Elder Hyde" <no_way> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
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.

Jul 21 '05 #20

P: n/a
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.
<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #21

P: n/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

<di********@discussion.microsoft.com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Hi,

The following code shows the FolderBrowserDialog = broken.

FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();

Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.

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?

Thanks

Jul 21 '05 #22

P: n/a
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.
"Elder Hyde" <no_way> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.

Jul 21 '05 #23

P: n/a
I have dyslexia and an ADHD exceuse me for not being a perfect being in the
masterrace.

"Elder Hyde" <no_way> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
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.

Jul 21 '05 #24

P: n/a
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.

<di********@discussion.microsoft.com> wrote in message
news:e$****************@tk2msftngp13.phx.gbl...
I have dyslexia and an ADHD exceuse me for not being a perfect being in the masterrace.

"Elder Hyde" <no_way> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
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.


Jul 21 '05 #25

P: n/a
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!

di********@discussion.microsoft.com wrote:
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.

Jul 21 '05 #26

This discussion thread is closed

Replies have been disabled for this discussion.