Ask the Expert

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: