You should use
FileSearch:
Code:
FileSearch(ArrayList1, AppPath, "*.txt")
This code will fill ArrayList1 with all the paths of txt files located in the current folder.
Afterward you can add these to a listbox:
Code:
For i = 0 to ArrayList1.Count - 1
ListBox1.Add(FileName(ArrayList1.Item(i))) 'Use FileName to omit the complete path
Next
Then you could catch ListBox_SelectionChanged event and use ArrayList1.Item(Index) to get the full path to the selected item.