I have created a Combobox inside a form,
I had values to it using the below code
oComboBox.ValidValues.Add(oRecordSet.Fields.Item(0).Value, oRecordSet.Fields.Item(1).Value)
But when i select from Combo, only the value gets displayed and not the description
Can anyone help me?
The DisplayDesc property of the item can be set to True to display the description in the Combo Box. Note that this property is on the Item object, not on the ComboBox specific properties
If loading from XML you can set the "disp_desc" attribute of the item to "1" to get the equivalent effect.
John.
Add a comment