Why processform will just show a bit then closes itself and not adding items in listbox? I tried showing it before this code but this time it will show but it did not add anything in the listview. I tried putting msgbox(proccesslistname(n).ToString) to verify that my array is not empty in the for loop and it will show the strings in the array but the weird part is that it will not show/add in the listbox in my other form.
[code]If DATA.Contains("procret") Then
Dim proccesslistname() As String = DATA.Split("'")
MsgBox("Decoding List")
MsgBox("Data Received")
Dim n As Integer
Dim a As String = ""
For n = 0 To (proccesslistname.Length - 1) Step 1
a = a & (proccesslistname(n).ToString)
processform.ListBox1.Items.Add(proccesslistname(n).ToString)
Dim item As New ListViewItem(proccesslistname(n))
Next
processform.Show()
End If
[code]
[code]If DATA.Contains("procret") Then
Dim proccesslistname() As String = DATA.Split("'")
MsgBox("Decoding List")
MsgBox("Data Received")
Dim n As Integer
Dim a As String = ""
For n = 0 To (proccesslistname.Length - 1) Step 1
a = a & (proccesslistname(n).ToString)
processform.ListBox1.Items.Add(proccesslistname(n).ToString)
Dim item As New ListViewItem(proccesslistname(n))
Next
processform.Show()
End If
[code]