lothos12345 Posted February 13, 2004 Posted February 13, 2004 I have several files in a folder. I want the program I am writting in VB.NET to give me all the names of the files in the folder and display all the file names in a listbox. I am not sure how to accomplish this task. Any help given would be greatly appreciated. Quote
Administrators PlausiblyDamp Posted February 13, 2004 Administrators Posted February 13, 2004 Dim files() As String files = System.IO.Directory.GetFiles("Your path here") ListBox1.DataSource = files Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.