Name Value Pairs in a ComboBox
- by JamesB
I'm convinced this must be a common problem, but I can't seem to find a simple solution...
I want to use a combobox control with name value pairs as the items. ComboBox takes TStrings as its items so that should be fine.
Unfortunately the drawing method on a combobox draws Items[i] so you get Name=Value in the box.
I'd like the value to be hidden, so I can work with the value in code, but the user sees the name.
Any Ideas?