There was a question back in Dec 05 about cloning a listview. This was thread thread796-1169523.
The code was as follows:
Dim itm As ListViewItem
For Each itm In ListView1.SelectedItems
Dim newitm As ListViewItem = itm.Clone
ListView2.Items.Add(newitm)
Next
When I tried this using vb2008 I get the following message:
Option strict on disallows implicit conversions from 'Object' to 'Systems.Windows.Forms.ListViewItem'
How do I modify the code to work with vb2008?
The code was as follows:
Dim itm As ListViewItem
For Each itm In ListView1.SelectedItems
Dim newitm As ListViewItem = itm.Clone
ListView2.Items.Add(newitm)
Next
When I tried this using vb2008 I get the following message:
Option strict on disallows implicit conversions from 'Object' to 'Systems.Windows.Forms.ListViewItem'
How do I modify the code to work with vb2008?