Dim objDict As New Dictionary(Of String, String)
objDict.Add("1", "Value 1")
objDict.Add("2", "Value 2")
ComboBox1.DataSource = New BindingSource(objDict, Nothing)
ComboBox1.DisplayMember = "Value"
ComboBox1.ValueMember = "Key"
objDict.Add("1", "Value 1")
objDict.Add("2", "Value 2")
ComboBox1.DataSource = New BindingSource(objDict, Nothing)
ComboBox1.DisplayMember = "Value"
ComboBox1.ValueMember = "Key"
No comments:
Post a Comment