|
-
Jan 23rd, 2008, 01:56 PM
#1
Thread Starter
Hyperactive Member
VB.NET 2005 - Copy ListView to ListView
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|