In my form I set a listbox and combobox to the same datasource like this
public DetailsForm()
{
InitializeComponent();
this.categories_comboBox.DataSource = TextSelectionSettings.Default.categories;
this.categories_listBox.DataSource = TextSelectionSettings.Default.categories;
}
The items I have listed in the collection show up in the listbox and combobox, but when I click an item in the listbox, it changes the selected item in the combobox, and vice versa. This is not what I expected, because I have no events defined yet for either control.
Is there a way to decouple the two?
EDIT: categories is of type
System.Collections.Specialized.StringCollection
and the TextSelectionSettings are ApplicationSettings