1.)If ListView7.CheckedItems.Item(j) = True Then
error
Error 1
Overload resolution failed because no accessible 'Item' can be called without a narrowing conversion:
'Public Overridable ReadOnly Default Property Item(key As String) As System.Windows.Forms.ListViewItem': Argument matching parameter 'key' narrows from 'Long' to 'String'.
'Public ReadOnly Default Property Item(index As Integer) As System.Windows.Forms.ListViewItem': Argument matching parameter 'index' narrows from 'Long' to 'Integer'.
2.) Dim new_item As New frmEmail.ListViewItem(("ListView7.SelectedItems").ToString)
error Error 2
Type 'frmEmail.ListViewItem' is not defined.
the whole code chunk is listed below that i am trying to use
thank you in advance for any and all your help
Private Sub ListView7_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView7.SelectedIndexChanged
Dim j As Long
For j = 1 To ListView7.SelectedItems.Count
If [u]ListView7.CheckedItems.Item(j)[/u] = True Then
'if selected then add to other list
Dim new_item As New[u] frmEmail.ListViewItem[/u](("ListView7.SelectedItems").ToString)
'etc to include all subitems so the entire row is moved
End If
Next j
frmEmail.Show()
end sub

New Topic/Question
Reply




MultiQuote






|