How to assign path to .RootFolder

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Using VB.NET 2003:

I'm trying to use FolderBrowseDialog. I would like to initialize the
browsing to a specific folder, like "C:\" or "D:\MyTopFolder".

The .RootFolder property seems to accept only the numeric value
returned by Environment.SpecialFolder.whatever.

Is there a way to assign it the path of my choice?
 
Martin said:
I'm trying to use FolderBrowseDialog. I would like to initialize the
browsing to a specific folder, like "C:\" or "D:\MyTopFolder".

The .RootFolder property seems to accept only the numeric value
returned by Environment.SpecialFolder.whatever.

Maybe you are looking for the 'SelectedFolder' property.
 
Maybe you are looking for the 'SelectedFolder' property.

OK, thanks - that worked.

But isn't the .RootFolder property there to specify where browsing is
supposed to start?
 
Martin said:
But isn't the .RootFolder property there to specify where browsing is
supposed to start?

The root means that you can only select a folder that is contained in the
root directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top