How do I embed network browsing capability into my VB.NET app?

I'd like to embed some network browsing capability into a VB.NET application, something like the native "My Network Places," to let the user choose from a list of computers that were found on the network. Could you please suggest a way to do that?
Excellent question! I originally thought there was a common dialog for this, but was surprised to find out one does not exist. However, there's the Win32 NetServerEnum and WNetEnumResource APIs, which forms the basis of how to enumerate servers. Here is a good example of how to use the API.
This was first published in May 2003

Dig deeper on .NET tutorials, guides and quizzes

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: