I linked a list of object to a ListBox control and I want to make the item switch from a ListBox to an another one with the press of a button :
ListBox3.DataSource = testsToRunList
ListBox3.DisplayMember = "Name"
ListBox3.ValueMember = "ID"
ListBox4.DataSource = testsToIgnoreList
ListBox4.DisplayMember = "Name"
ListBox4.ValueMember = "ID"
...
Private Sub SendDownButton_Click(sender As Object, e As EventArgs) Handles SendDownButton.Click
Dim myobj = ListBox3.SelectedItem
testsToRunList.Remove(myobj)
testsToIgnoreList.Add(myobj)
' ListBox3.Refresh()
' ListBox4.Refresh()
End Sub
Changing the item in the linked list doesn't affect the content of the ListBox control. How can I make sure that my ListBoxe's content reflects what is in my linked lists?