I have seemingly simple problem in Winforms.
I want to implement a collection that can be used as a DataSource for a listbox. I intend to use it for simple strings. Like so:
MyBindingCollection<string> collection = new MyBindingCollection<string>();
listbox.DataSource = collection;
I've read that all I need to implement is IList
interface. However I would like the listbox to update itself when I do:
collection.Add('test');
collection.RemoveAt(0):
How do I create such collection? This is only one-way binding, I do not need to update collection from the GUI. (listbox is read only).