i use a file listbox that shows files on my disk.
i want to select multiple files, and make a list of them in a ListBox.
i tried some shings, but i only get in the listbox the name of the last file - multiple times.
what should i do ? , any ideas ?
Printable View
i use a file listbox that shows files on my disk.
i want to select multiple files, and make a list of them in a ListBox.
i tried some shings, but i only get in the listbox the name of the last file - multiple times.
what should i do ? , any ideas ?
Hello mrz,
Make a form with a listbox "List1" and a FileListBox "File1".
Try this code
Private Sub File1_KeyPress(KeyAscii As Integer)
Dim n As Integer
List1.Clear
If KeyAscii = 13 Then
For n = 0 To File1.ListCount - 1
If File1.Selected(n) Then List1.AddItem File1.List(n)
Next n
End If
End Sub
Good luck,
Michelle.
[Edited by michelle on 05-02-2000 at 03:28 AM]
thanks,
I actualy just neded the - File1.List(n)