Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged
If ListView1.Items.Count > 0 Then
For Each LV As ListViewItem In ListView1.SelectedItems
MsgBox("ID: " & LV.SubItems(0).Text & vbNewLine & "Value: " & LV.SubItems(1).Text)
Next
End If
End Sub
ไม่มีความคิดเห็น:
แสดงความคิดเห็น