Hi.....
How do i set a listview to only add one item from a combobox?
Example:
In the text file containing the list are "Chicken, Beef, Buffalo", that already exists in listview is "Cow" then the listview will only add "Chicken, Buffalo".
i have here a code for adding items in a listview:
For Each ListedString As String In CType(iData.GetData(DataFormats.Text), String).Split(Environment.NewLine)
For Each listItem As ListViewItem In MyListView1.Items
If listItem.SubItems(2).Text = ListedString Then
Return
End If
Next
If UrlIsValid(ListedString) = True Then
Dim lvi As New ListViewItem("Normal")
lvi.SubItems.Add(MyListView1.Items.Count + 1)
lvi.SubItems.Add(ListedString)
lvi.SubItems.Add(GetFileNameFromURL(ListedString))
MyListView1.Items.Add(lvi)
End If
Next
Please, Help.
Thanks,
Bazzer Respeto