Ready to get started with anonymous questions today? It's easy! Learn more.
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load TextBox1.Text = "c:\test\" Dim files() As String = IO.Directory.GetFiles(TextBox1.Text) ListBox1.Items.Clear() For Each file As String In files ListBox1.Items.Add(IO.Path.GetFileName(file)) Next End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.