When adding items to a ComboBox I know that I could simply define some object and modify .ToString()
Is there a built-in object that already does this on a double/string combination?
That is:
I know that I can do this:
myCombo.Items.Add(New MyItem(myString,myDouble));
Is there a built-in type such that I can do this:
myCombo.Items.Add(New SomeBuiltInType(myString,myDouble));
All I want is to display myString in the box and be able to read myDouble from the selected item… or some combination of myString and myDouble is also fine.
Use a
Dictionarysince each entry is aKeyValuePair.