473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Folders in FolderBrowserDialog disappears!

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
3 1973
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Howes | last post by:
I'm working in C#/.Net Desktop shortcuts to folders are now shown in the FolderBrowserDialog. Is there any way to have them show up? thanks mike
1
by: Michael Howes | last post by:
I'm working in C#/.Net Desktop shortcuts to folders are now shown in the FolderBrowserDialog. Is there any way to have them show up? thanks mike
0
bplacker
by: bplacker | last post by:
I am trying to use the FolderBrowserDialog to select a folder... and from there, programatically find each folder, go into that folder, and pull out all filenames within the folder. Does that make...
0
by: TG | last post by:
hi! I am working with VB 2008. I want to be able to run this program say in N:\ and it will show me in an excel sheet the following: Folder Path Size(GB) Count of Files N:\Clients 0.53 308 ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.