Helo expert..
Please help me... I try to delete several item but always error..
error code >>>> InvalidArgument=Value of '32' is not valid for 'index'. Parameter name: index
Code:Private Sub ToolStripButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton2.Click If MsgBox("Are You sure to delete all this data?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then For i = 0 To ListView1.CheckedItems.Count - 1 ListView1.Items.Remove(ListView1.CheckedItems(i)) Next i End If End Sub


LinkBack URL
About LinkBacks




Reply With Quote




Bookmarks