Salve!
Vorrei visualizzare solo file e cartelle nella mia listbox, escludento fullpath
esempio listbox:
file
cartella\file
il mio codice:
Try
Dim folderDLG As New FolderBrowserDialog
folderDLG.Description = " Select folder"
folderDLG.ShowNewFolderButton = False
Dim folderPath As String
If folderDLG.ShowDialog = Windows.Forms.DialogResult.OK Then
folderPath = folderDLG.SelectedPath
For Each fileAndPath In _
My.Computer.FileSystem.GetFiles(folderPath, _
FileIO.SearchOption.SearchAllSubDirectories, "*.*")
lstFiles.Items.Add(fileAndPath)
Next
End If