how to avoid duplicate

lvList DoubleClick()

Dim line = lvList.SelectedIndices(item.Text)
lvPrint.Items.Add(lvList.Items(line).Clone())

hi,

You could see if the listitem is already contained within the second Listview with the Contains method.

Failing that, you would loop through each item in the second Listview item and compare to the item you wish to add. If you do not find a match, then add it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.