This might help also. Just change the ListBox to a ComboBox.
Dim myCoolFolder As String = "C:\!vbTemp\" '// your folder.
For Each myCoolFile As String In My.Computer.FileSystem.GetFiles _
(myCoolFolder, FileIO.SearchOption.SearchTopLevelOnly, "*.*")
ListBox1.Items.Add(IO.Path.GetFileName(myCoolFile)) '// add file name with extension.
Next
'// to search subfolders, change "SearchTopLevelOnly" to "SearchAllSubDirectories".
'// to only get a certain file type, change "*.*" to your file type.
'//-- example for .txt files: "*.txt"
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
Since you cannot receive private messages, I'll post here and remind you to not forget to mark the thread solved if Solved. And of course, glad I could help. :)
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384