cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JoeBig
Level 4

FolderBrowserDialog .NET DLL Custom Action not showing folder tree

I built a static method in a .NET DLL that does this:


System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
dialog.ShowDialog();

When the dialog is shown, it doesn't contain the folder tree:

http://imgur.com/fpycL&MrgOH

Then if I cancel it and show it again it shows up!

http://imgur.com/fpycL&MrgOHl

minus the black box of course.


What's wrong here?
Labels (1)
0 Kudos

(1) Reply
JoeBig
Level 4

I figured it out. I have to run the call in a single-threaded apartment. I guess IS2011 is calling it as on a non-UI thread.
0 Kudos