kimiraikkonen,
Did you look in the online help for the openfiledialog's MultiSelect
property? The online help clearly explains that the selected filenames are
returned in the openfiledialog's FileNames property.
The FileNames property is an array of strings. Each element of the array is
one of the selected filenames.
One option would be to loop through the FileNames array, adding each
filename to the listbox:
For Each f As String In openfileplaylist.FileNames
ListBox1.Items.Add(System.IO.Path.GetFileName(f))
Next
Kerry Moorman
"kimiraikkonen" wrote:
Hello,
I have openfiledialog control named "openfileplaylist" and multi-
selectpropert is TRUE. But although i select more than one files using
"shift+arrows", i only get one file listed in my listbox.
What's wrong?
Code:
If openfileplaylist.ShowDialog() = Windows.Forms.DialogResult.OK Then
ListBox1.Items.Add(System.IO.Path.GetFileName(open fileplaylist.FileName))
Else