I have a dictionnary with KeyValuePair of integer, String.
Lets say it has: 1, "Test" 2 , "Hello 3, "Sunny"
I need to fill a ListBox that has ValueMember = "ID and DisplayMember = "Description"
the DataSource needs to come from the Dictionnary but since I cannot Alias a dictionnary columns, I used LINQ in this way :
Dim q = _
From m In dict
Select ID = m.Key _
, DEscription = m.Value
but when I do myLsitBox.DataSource = q
I have error...
can you help ?