Hello Sir,

I want to perform following action please help!!!!!!!!!!

when i click on a item in a listview it would also show in a separate label.....

i didn't know how to do this?????

please help.

Hi,

You can try it like this:

Private Sub ListView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged
        Dim SelectedItems As ListView.SelectedListViewItemCollection = _
            CType(sender, ListView).SelectedItems
        If (SelectedItems.Count > 0) Then
            Label1.Text = ListView1.SelectedItems(0).SubItems(0).Text
        End If

    End Sub

Thank u vry much sir,
bt should i put dis code,
bcoz d code showing item in another label and not in label in which i want it to display

This question has already been answered. Start a new discussion instead.