I am trying to load two text files from a dialogbox into a listbox. I noticed in the dialogbox properties there is a place for multiselction but how would i pass both textboxes to an array?
summey
0
Light Poster
Recommended Answers
Jump to Postyou want to Select the multiple files once and load into list box? using open FileDialog?
Jump to Postthis should help you
Try Dim strlist As New List(Of String) Dim file As String Dim openFiles As New OpenFileDialog openFiles.Multiselect = True If openFiles.ShowDialog = DialogResult.OK Then For Each file In openFiles.FileNames Dim sr As New IO.StreamReader(openFiles.FileName) While (sr.Peek() > -1) strlist.Add(sr.ReadToEnd) End While Next …
Jump to PostYou should select the multicolumn to true.
All 9 Replies
Pgmer
50
Master Poster
Featured Poster
summey
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
summey
0
Light Poster
summey
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
summey
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
summey
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.