Published in: VB.NET
Really simple method of binding a Dictionary of key-value pairs to a ComboBox. A snippet I can never remember..
'dDates is a Dictionary(Of Int32, String) cmbDate.DataSource = New BindingSource(dDates, Nothing) cmbDate.DisplayMember = "Value" cmbDate.ValueMember = "Key"
You need to login to post a comment.
