Reply to #3
tech & wierd
This is my code now, I think I am missing a step? You mentioned "Once the items have been loaded"
I am not sure that I have loaded anything because my list box is still empty. So I can assume now that the original code posted above is just a browse function, the code you gave me is a list function, now I must figure out how to load the desired files. Makes sense. (but I don't know how to load items?) I will search the forum for how to load items and hopefully check back for maybe a reply on how to load items at a later time. hint, hint.
Thanks
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") ListBox1.Items.Add(File) Next End If End Sub End Class




Reply With Quote