Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Why my form closes? and not putting items in listview?

$
0
0
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]

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>