Hey all, ive had to start a new thread since intentions has changed since the original one, and things got confussing
I have a listview called listview1
listview1 has 4 colums already added, wich i added via properties
there are 4 colums and there names and colums are
Avator = colum 0
Username = colum 1
Status = colum 2
Game = colum 3
Listbox2 is full of items, each item is full with text.
what i want to do is do a search for usernames, and add each one to listview1 under colum 1
currently, i am finding usernames via text in a textbox called textbox 1 and adding it to a listbox called listbox1 ussing the following code.
WithCode:Private Function GetTagContents(ByVal Source As String, ByVal startTag As String, ByVal endTag As String) As List(Of String) startTag = startTag.ToUpper() endTag = endTag.ToUpper() Dim StringsFound As New List(Of String) Dim Index As Integer = Source.ToUpper.IndexOf(startTag) + startTag.Length While Index <> startTag.Length - 1 StringsFound.Add(Source.Substring(Index, Source.ToUpper.IndexOf(endTag, Index) - Index)) Index = Source.ToUpper.IndexOf(startTag, Index) + startTag.Length End While Return StringsFound End Function
Code:ListBox1.Items.AddRange(GetTagContents(TextBox1.Text, "<SPAN class=friend_id>", "</span>").ToArray)
But what i need to do is to go through every item in listbox2, find the username and add it to the username colum (1)
Please help
I hope i made more sence this time![]()





Reply With Quote