I did not test this, but it should work:
Private Sub ListView1_ItemCheck(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
If e.CurrentValue = CheckState.Checked Then
Dim lvi As ListViewItem = ListView1.Items(e.Index)
Dim FirstCol As ListViewItem.ListViewSubItem = lvi.SubItems(0)
Dim s As String = FirstCol.Text
messagebox.show(s)
End If
End Sub
"Maarten" wrote:
how can i retrieve the text of an item(first column) in a listview
when i check the checkbox.
the index is no problem, but the text isn't.
thanks Maarten