I am using the DriveListBox to browse for drives in my computer. Now, I want to browse the network but my DriveListBox doesn't show the network. How can I do this? pls help...:)
Printable View
I am using the DriveListBox to browse for drives in my computer. Now, I want to browse the network but my DriveListBox doesn't show the network. How can I do this? pls help...:)
I believe that you can only list network drives that are listed under My Computer. At least that is all I ever see in my DriveListBox.
Check the FreeVBCode site http://www.freevbcode.com/ and look in the Network/Internet section. There are some downloads that may have just the code you are looking for.
DLB can't do that (unless of course you map the drives)
however this may help :)
http://www.freevbcode.com/ShowCode.Asp?ID=781
http://www.freevbcode.com/ShowCode.Asp?ID=554
To get all the computers on the network..
Why not use the Open dialog for your purposes though? :)
Use the Common Dialog to show Network NeighborhoodVB Code:
Private Sub Command1_Click() With CommonDialog1 .CancelError = True .InitDir = "::{208D2C60-3AEA-1069-A2D7-08002B30309D}" .DialogTitle = "Starting In Network Neighborhood" .ShowOpen End With End Sub
Than you all guys! your advices are all well taken and i got it now! thanks a lot!