mansi sharma 7 Junior Poster in Training

I associate the listview with the imagelist..Set property of listview SmallList to Imagelist..I want that on listview click. I get the icon name....But i m not getting how to get icon name..Mine code below--

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim lCount As Integer

        For lCount = 0 To 1
            If lCount = 0 Then
                ListView1.Items.Add("FIRST", lCount)
            End If

            If lCount = 1 Then
                ListView1.Items.Add("SEXCOND", lCount)
            End If


            Application.DoEvents()
        Next
    End Sub

    Private Sub ListView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.Click
        Dim lvw As ListView = CType(sender, ListView)

    End Sub

  
End Class
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.