471,339 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

FileBrowserDialog is blank.

I'm running VS 2003 with NetFramework 1.1.
I've added a FileBrowserDialog to a WinForm and set the properties for
Description and hiding the NewFolder button.
These properties are correctly displayed with I show the dialog.
But, the directory tree is always blank, regardless of the Root property
(eg. Desktop or MyComputer). I've left the SelectedPath properties empty. I
must be missing something. --
Thanks for your help.
Jul 22 '05 #1
5 2815
Ron,

There is no FileBrowserDialog in Net about what control are you talking?

Cor
Jul 22 '05 #2
Sorry, slip of the pen, meant FolderBrowserDialog.

--
Thanks for your help.
"Cor Ligthert [MVP]" wrote:
Ron,

There is no FileBrowserDialog in Net about what control are you talking?

Cor

Jul 22 '05 #3
Ron,

Can you show us some code that you used to set the properties?

Cor
Jul 22 '05 #4
>I'm running VS 2003 with NetFramework 1.1.
I've added a FileBrowserDialog to a WinForm and set the properties for
Description and hiding the NewFolder button.
These properties are correctly displayed with I show the dialog.
But, the directory tree is always blank, regardless of the Root property
(eg. Desktop or MyComputer). I've left the SelectedPath properties empty. I
must be missing something. --
Thanks for your help.


A common reason for this is not having the STAThread attribute on your
Main method.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 22 '05 #5
That was the problem. Many many thanks.
--

"Ron Ford" wrote:
I'm running VS 2003 with NetFramework 1.1.
I've added a FileBrowserDialog to a WinForm and set the properties for
Description and hiding the NewFolder button.
These properties are correctly displayed with I show the dialog.
But, the directory tree is always blank, regardless of the Root property
(eg. Desktop or MyComputer). I've left the SelectedPath properties empty. I
must be missing something. --
Thanks for your help.

Jul 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael A. Covington | last post: by
2 posts views Thread by Ken Loomis | last post: by
5 posts views Thread by Ron Ford | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.