VB.NET code to show a list of files in a directory
Private
Sub ShowFiles(path as string)
Dim d() As String
d = System.IO.Directory.GetFiles(path)
Dim en As System.Collections.IEnumerator
en = d.GetEnumerator
While en.MoveNext
MsgBox(CStr(en.Current))
End While
End Sub