all groups > dotnet windows forms > september 2004 >
You're in the

dotnet windows forms

group:

FolderBrowserDialog is empty


FolderBrowserDialog is empty Davy Brion
9/11/2004 3:32:18 PM
dotnet windows forms:
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

--
Re: FolderBrowserDialog is empty Davy Brion
9/11/2004 6:20:45 PM
[quoted text, click to view]

thx, that fixed it :)

--
Re: FolderBrowserDialog is empty hirf-spam-me-here NO[at]SPAM gmx.at
9/11/2004 7:24:15 PM
* "Davy Brion" <ralinx@gmail.com> scripsit:
[quoted text, click to view]

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/>
Re: FolderBrowserDialog is empty hirf-spam-me-here NO[at]SPAM gmx.at
9/13/2004 8:58:13 AM
* "Joey Callisay" <hcalisay@codex-systems.com> scripsit:
[quoted text, click to view]

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/>
Re: FolderBrowserDialog is empty Joey Callisay
9/13/2004 9:35:54 AM
Any article or links which discusses this behavior for folderbrowserdialog
on Multithreaded apps Mr. Wagner?

Thanx...

[quoted text, click to view]

Re: FolderBrowserDialog is empty Joey Callisay
9/13/2004 3:19:09 PM
ok thanx

[quoted text, click to view]

AddThis Social Bookmark Button