What is the proper way to load a ListBox in C# .NET 2.0 Winforms?
ListBox
I thought I could just bind it to a DataTable. No such luck. I though
DataTable
To bind to a dictionary you have to wrap it in a new BindingSource object.
MyListBox.DataSource = New BindingSource(Dict, Nothing) MyListBox.DisplayMember = "Value" MyListBox.ValueMember = "Key"