Not even sure if what I am trying to do is possible. My goal is for the user to select multiple items from a list box. which are file names and be able to plot the data that’s in the files on a separate form. where it takes that file name and searches a path looking for that file name. Example being John selects files ABC.csv and 123.Csv he will then click a button that says plot and it plots a overlay of the data from the 2 files.
I have my list box with all my file names I have tried doing it with multiple listboxes with one selection and 1 listbox with multiple selections. I can Currently plot 1 file no problem and get the code to send 1 file across to the other form. The issue lies with sending multiple. Ultimetley I am needing to create a “New” list that contains the selected files. Then I could take that “New” list to send it over correct?
objFileName.StringPassFileName = ""
ObjFileName.StringPassFileName = LstBoxSpectrumFiles.SelectedItem.ToString
ObjFileName.Show()