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.
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
thnk u vry much sir,
u done it.....
now plz help me in my thread
http://www.daniweb.com/software-development/vbnet/threads/364490
thnk u vry much sir,
u done it.....now plz help me in my thread
http://www.daniweb.com/software-development/vbnet/threads/364490
Hi,
No problem :)
Mark this thread as resolved and rating is a way of saying thank you. Don't forget to rate always, thanks. :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.