.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification