I have a listbox with the following lines with 3 unique strings in it:
(the output below is exactly what I need, For each line from Listbox to Richtextbox.text each on a new line):
Can someone help me with this in VB?
Sofar the code I am using is working but only for one line and I need it to do it with all lines from my Listbox.
What I have tried:
Dim mynumberlist As New List(Of String)
For Each line As String In ListBox1.Items
Dim StringSplit() As String = line.Split("_")
RichTextBox1.Text = StringSplit(2) & "_" & StringSplit(0) & "_" & StringSplit(1) & ",0," & StringSplit(2) & "," & StringSplit(3) & ",0," & StringSplit(0) & "," & StringSplit(1) & ",0,1,0,0"