Okay, how do i make it so that i have to listviews (with items in them) and when i select an item in listview2 then the same item is highlighted/selected in listview1? How do i do this...Please Help! Thanks - All code is welcome.
Printable View
Okay, how do i make it so that i have to listviews (with items in them) and when i select an item in listview2 then the same item is highlighted/selected in listview1? How do i do this...Please Help! Thanks - All code is welcome.
Search the forums for "synchronise listview" or "synchronised list" or something like that, there should be plenty of examples. Also check out the CodeBank section.
If both listviews have the same items, then...
Edited: If the listview items in both listviews have the same KeysCode:Set ListView1.SelectedItem = ListView1.FindItem(ListView2.SelectedItem.Text, lvwText)
If Not ListView1.SelectedItem Is Nothing Then ListView1.SelectedItem.EnsureVisible
Code:Set ListView1.SelectedItem = ListView1.ListItems(ListView2.SelectedItem.Key)
ListView1.SelectedItem.EnsureVisible