I have a list box and I want it to add all items in a specified folder.
I have this so far, but I cant figure out how to get the filenames part right:
ListBox1.Items.Add(Application.StartupPath & "\Program Images\Image Viewer\" & filename.Text)
Also, when its displaying that in the listbox, its showing the whole directory (ex. C:\Files\Folder\) I would like it to just show the filename with the ending (ex. Picture.bmp or Text.txt)
Thanks in advance
I have this so far, but I cant figure out how to get the filenames part right:
ListBox1.Items.Add(Application.StartupPath & "\Program Images\Image Viewer\" & filename.Text)
Also, when its displaying that in the listbox, its showing the whole directory (ex. C:\Files\Folder\) I would like it to just show the filename with the ending (ex. Picture.bmp or Text.txt)
Thanks in advance