I would like to use the OpenDialog.MultiSelect in a Windows environment to allow the user to select multiple files at once. The example in the documentation seems to be lacking the details.
The language reference states “To obtain a list of all the selected FolderItems weve added the Item(zeroBasedIndex As Integer) As FolderItem and Count As Integer properties.” I can see the Count in the example, but not the “Item”. The example also seems to stop without showing how to access the multiple folderitems selected by the user.
[code]
Dim dlg As New OpenDialog
dlg.ActionButtonCaption = “Select Files”
dlg.CancelButtonCaption = “Cancel”
dlg.SuggestedFileName = “”
dlg.Title = “Select Files”
dlg.PromptText = “Select one or more files”
dlg.InitialDirectory = SpecialFolder.Documents
dlg.MultiSelect = True
Dim f as FolderItem = dlg.ShowModal()
Dim fileCount As Integer = dlg.Count
For i As Integer = 0 To fileCount - 1
Listbox1.AddRow(dlg.Item(i).Name)
Next[/code]