Question Select The Same Item In Another List?

Jamie2993

Member
Joined
May 13, 2009
Messages
11
Programming Experience
1-3
Hi All, Due to my other thread ive made a split container and made it so you know the title,

Is it possible to Double-Click A "Listbox1" item, E.G:the 3rd item on the "Listbox1" and be able to make it find the 3rd item on the otherlist "listbox2" and use that value/item to play..?

Is this at all possible?

Thanks In Advance,

Jamie.
 
Here is code that checks if listbox1 has changed which item is being highlighted. If the first item is highlighted, then it also highlights the first item on listbox2.
VB.NET:
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        If ListBox1.SelectedIndex = 0 Then
            ListBox2.SelectedIndex = 0
        End If
    End Sub
 
Back
Top