Cloning Listviews
I'm wondering how to accomplish a complete clone of Listview entries, with all subitems and icon settings. Is this possible without explicitly going through all variables?
E.G. Listview2.entry(x) = Listview1.entry(y)
I'm wondering how to accomplish a complete clone of Listview entries, with all subitems and icon settings. Is this possible without explicitly going through all variables?
E.G. Listview2.entry(x) = Listview1.entry(y)
The best you will do is to iterate through the list and clone the items:
For Each lvi As ListViewItem In Me.ListView1.Items
Me.ListView2.Items.Add(lvi.Clone)NextIn order to get the images to show up properly you must set the listview2 imagelist to the same imagelist as listview1![]()