Hi,

VB.NET 2005

Anyone has a quick way to copy a listview to a new listview?

It tried the following, but it crashes ..

Dim arrTemp(lvwTemp.Items.Count) As ListViewItem
lvwTemp.Items.CopyTo(arrTemp, 0)
lvwObjectsFound.Items.AddRange(arrTemp)


Thanks for helping.


Structure of lvwTemp is:

With lvwTemp
.Clear()
.Columns.Add("Nom", 400, HorizontalAlignment.Left)
.Columns.Add("Type", 200, HorizontalAlignment.Left)
End With