Below code is opening Folder Browser dialog on button click, I want that if mine PC is in network..In Folder Browser Dialog even the network drives are coming,I want that Network Places do not come in treeview.Is it possible??
Option Strict On
Option Explicit On
Option Compare Text
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim obj As New FolderBrowserDialog
If obj.ShowDialog = Windows.Forms.DialogResult.OK Then
MsgBox(obj.SelectedPath)
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class