Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

This resource has not currently been approved, and is not currently linked to from our directory of resources. It is being displayed here for preview by the author and moderators only.
Rated
Read 2,870 times

Contents

Related Categories

Get NetWork Folder Path Using FolderBrowser then Populate a ListBox with the files - Folder Browse with Network Support

stixoffire

Folder Browse with Network Support

I was having a difficult time finding an answer to this question and spent HOURS searching the net, and even MSDN, and the FRAMEWORK VB .NET 1.1 .

Normally using the FolderBrowser method in windows you have access to the local machine folders only. Therefore if you want the PATH to a folder on the network or another computer you cannot do it.

I saw many articles that took people back to the SHFolder method and all sorts of long code, and said well VB .NET does not have that method they say to use - and of course Microsoft says not use it - they tell you this, and use it. You do not need to either.

I chose to write this because it was really Missing from the forums and code snippets and thousands of articles I have read and searched.

I said normally there is no access to the network! The FolderBrowser has a default environment root directory that is local only and therefore must be changed.

Simply look at the code and notice I set the
FolderBrowser = Environment.RootDirectory.DeskTopDirectory

That is it.

Comments