visual studio 2010 - ListView delete item by name using VB.net -


I was wondering if a list item is possible only by learning about its text name (like listbox. Text without needing to know or highlighted it?

  Give LIViTim Dim Lavi 2 as the list given in the form of LIST LIST 2 LIST in each LVI in lstNew.Items for lstMaster.Items if lvi text = lvi2 .text then 'Remove items using its text.' Example: 'lstMaster | LstNew '--------------------------------------' Bob | Jenny Jason | 'Jenny' 'Jack | '--------------------------------------' to remove the program from "lenght" Finally .... Next Next   

Thank you!

David

I do not know why you could not use text property Is there any reason why you can not do this:

  if lvi.Text = lvi2.Text then lstMaster.Items.Remove (lvi) end if    

Comments