hello!
how can i get the index of selected row in listview in mouse up?
thank you

Hi,

You can find at the documentation what members the ListView class has. The documentation lists all the members and describes the SelectedIndices property.
So, your a couple of clicks away from the solution...

Private Sub ListView1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp
        If ListView1.SelectedItems.Count > 0 Then
            MsgBox(ListView1.SelectedItems.Item(0).Index, MsgBoxStyle.Information)
        End If
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.