I have just upgraded a project from .NET 3.5 to 4.0 and have found that ListBoxes behave differently. Items are sometimes added to ListBoxes from the code behind using
this.myListBox.SelectedItem = new MyItemType();
This no longer fires the myListBox.SelectionChanged event and is causing bugs in the program. Is there a better way of doing this?
Thanks, Matt