* "Davy Brion" <ralinx@gmail.com> scripsit:
> 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.
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'.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Davy Brion - 11 Sep 2004 19:20 GMT
> 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'.
thx, that fixed it :)
--
Joey Callisay - 13 Sep 2004 02:35 GMT
Any article or links which discusses this behavior for folderbrowserdialog
on Multithreaded apps Mr. Wagner?
Thanx...
> * "Davy Brion" <ralinx@gmail.com> scripsit:
> > i'm sure i overlooked something silly, but for some reason if i try to
[quoted text clipped - 6 lines]
> entry point (not 'MTAThread'). 'STAThread' is the default, so it
> doesn't need to be explicitly added to your 'void Main'/'Sub Main'.
Herfried K. Wagner [MVP] - 13 Sep 2004 07:58 GMT
* "Joey Callisay" <hcalisay@codex-systems.com> scripsit:
> Any article or links which discusses this behavior for folderbrowserdialog
> on Multithreaded apps Mr. Wagner?
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.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Joey Callisay - 13 Sep 2004 08:19 GMT
ok thanx
> * "Joey Callisay" <hcalisay@codex-systems.com> scripsit:
> > Any article or links which discusses this behavior for folderbrowserdialog
> > on Multithreaded apps Mr. Wagner?
>
> 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.