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

Folders in FolderBrowserDialog disappears!

P: n/a
Using VS.NET 2003 with all the 1.1 framework updates. I've been
subjected to this bug in 2 separate projects, and in both cases, I've
found no way back other than starting from scratch again (which I
haven't done yet).

What happens is that the TreeView with the folders in every
FolderBrowserDialog disappears. It happens totally spontaneous, from one
build to the other. When it has happened, it appears to be no way back.
This screen dump illustrates the symptom:

http://gusgus.cn/temp/FolderBrowserDialogBug.png

I've tried all the obvious things like restarting VS, replacing the
FolderBrowserDialog control, and reloading the contol. What more can I
do to make it work again?

Gustaf
Jun 27 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Post the code that creates the dialog, sets properties, and shows the
dialog.
Gustaf wrote:
Using VS.NET 2003 with all the 1.1 framework updates. I've been
subjected to this bug in 2 separate projects, and in both cases, I've
found no way back other than starting from scratch again (which I
haven't done yet).

What happens is that the TreeView with the folders in every
FolderBrowserDialog disappears. It happens totally spontaneous, from one
build to the other. When it has happened, it appears to be no way back.
This screen dump illustrates the symptom:

http://gusgus.cn/temp/FolderBrowserDialogBug.png

I've tried all the obvious things like restarting VS, replacing the
FolderBrowserDialog control, and reloading the contol. What more can I
do to make it work again?

Gustaf


Jun 27 '06 #2

P: n/a
Gustaf,
What more can I do to make it work again?


This is usually caused by not showing the dialog on an STA thread.
Make sure you ahve the [STAThread] attribute on your Main method if
you show the dialog from your main thread.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jun 27 '06 #3

P: n/a
Mattias Sjögren wrote:
This is usually caused by not showing the dialog on an STA thread.
Make sure you ahve the [STAThread] attribute on your Main method if
you show the dialog from your main thread.


Wow! Someone must have worked hard to figure out that connection! Thanks
for sharing. Problem solved. :-)

Gustaf
Jun 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.