Search:
Namespaces
Discussions
.NET v1.1
Feedback
FolderBrowserDialog is empty
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.windowsforms
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Davy Brion
Hey,
i'm sure i overlooked something silly, but for some reason if i try to
use the
FolderBrowserDialog
.ShowDialog method, the dialog does not
show a treeview containing folders... the dialog only contains the
button to create a new folder (which also doesn't do anything) and
the Ok and Cancel buttons.
I get this behaviour no matter what value i assign to the RootFolder
property before calling the ShowDialog method.
Does anyone know what i'm doing wrong here?
thx
ps: using .NET 1.1 with SP1 on XP Pro SP2
--
Reply to this message...
Herfried K. Wagner [MVP] (VIP)
* "Davy Brion" <
Click here to reveal e-mail address
> scripsit:
[Original message clipped]
Make sure the 'STAThread' attribute is specified on your application's
entry point (not 'MTAThread'). 'STAThread' is the default, so it
doesn't need to be explicitly added to your 'void Main'/'Sub Main'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Reply to this message...
Joey Callisay
Any article or links which discusses this behavior for folderbrowserdialog
on Multithreaded apps Mr. Wagner?
Thanx...
"Herfried K. Wagner [MVP]" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Herfried K. Wagner [MVP] (VIP)
* "Joey Callisay" <
Click here to reveal e-mail address
> scripsit:
[Original message clipped]
I don't have an article in mind, but for Windows Forms Apps I'd use
'STAThread' to avoid problems when components make use of COM interop.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Reply to this message...
Joey Callisay
ok thanx
"Herfried K. Wagner [MVP]" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Davy Brion
Click here to reveal e-mail address
(Herfried K. Wagner [MVP]) <> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
thx, that fixed it :)
--
Reply to this message...
System.Windows.Forms.FolderBrowserDialog
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com