Folder browsing dialog box in VB.net to select a particular path

Karthikanbarasan
Posted by Karthikanbarasan under VB.NET category on | Points: 40 | Views : 6035
Public Shared Function fnAskDirectory() As String
Dim objfolderBrowse As New FolderBrowserDialog
If objfolderBrowse.ShowDialog() = DialogResult.OK Then
Return objfolderBrowse.SelectedPath
Else
Return ""
End If
End Function

Comments or Responses

Login to post response