How do I get the selected files in this code to show in a list box?
Code:Public Class Form1 Private Sub BtBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim BtBrowse As New FolderBrowserDialog() BtBrowse.SelectedPath = "C:\" If BtBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then For Each File As String In My.Computer.FileSystem.GetFiles(BtBrowse.SelectedPath, FileIO.SearchOption.SearchTopLevelOnly, "*.txt") Next End If End Sub End Class
My lack of knowledge prohibits me from giving more info, so if you need more info, please ask and I will do my best to explain my desired results. I am just trying to learn.
Thanks




Reply With Quote