listbox1 항목과 listbox2 항목을 비교하려고합니다. 중복 된 항목을 제거하려고합니다.listbox1 항목을 listbox2 항목과 비교하고 중복 항목을 제거하십시오.
에 ListBox1는 "링크 1 링크 2 LINK3 link4 link5" '에 ListBox1 다운로드 항목 목록이
listbox2이 포함되어있다 "link9 link5 LINK3" 'listbox2 "LINK3"와 "link5"때문에 항목 목록
을 다운로드 포함 listbox2에 이미 있습니다. listbox1에서 제거하고 싶습니다.
도와주세요.
아래 코드는 작동하지 않습니다.
If listbox1.Items.Contains(listbox2.Items) Then
listbox1.Items.Remove(listbox2.Items)
end if
당신은'listbox2.Items'을 통해 반복해야합니다. – Bharadwaj