title: select multiple files and load the file names to "Checked List Box"
body: <p>I need to: open the file dialog box when a button clicked, and then I'll select multiple files, then click ok, then the files will appear on Checkedlistbox1. And I want the dialog box to remember the folder path which I browsed last (so when I click that button again, it will take me to that location). But when I just run "openfiledialog" I can't select multiple files, and when I add further code, the program gives errors. Please shed some light here. :)</p>
  
  <pre><code>Dim fbd As New OpenFileDialog With { _
              .Title = "Select multiple files", _
              .FileName = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)}
  
      If fbd.ShowDialog = DialogResult.OK Then
          CheckedListBox1.Items.AddRange(Array.ConvertAll(IO.Directory.GetFiles(fbd.FileNames), Function(f) IO.Path.GetFileName(f)))
      End If
  </code></pre>