Hi All,
I have ComboBox in an application that has a Description showing in the Dropdown List. Each description has an Code that goes with it. Such as:
Code: 53EB1
Description: Engineering Assistant Grade 1
What I have done so far is to place the code in the tag property of the ComboBox when the user clicks on that choice from the dropdown, that code works fine.
What I want to do next is to find a way to place that code in the ComboBox on the form, but not in the dropdown list, and just set the caption property of a label next to it equal to that description. So the user see's the code in the ComboBox and the description in the label.
Problem is I also don't want them to be able to key in the ComboBox, there for I have set the style to 2, so the text property is READONLY, so I can't set it to the code.
Any suggestions on how I might accomplish this?
Any help would be greatly appreciated.
Respectfully:
Ferlin.
I have ComboBox in an application that has a Description showing in the Dropdown List. Each description has an Code that goes with it. Such as:
Code: 53EB1
Description: Engineering Assistant Grade 1
What I have done so far is to place the code in the tag property of the ComboBox when the user clicks on that choice from the dropdown, that code works fine.
What I want to do next is to find a way to place that code in the ComboBox on the form, but not in the dropdown list, and just set the caption property of a label next to it equal to that description. So the user see's the code in the ComboBox and the description in the label.
Problem is I also don't want them to be able to key in the ComboBox, there for I have set the style to 2, so the text property is READONLY, so I can't set it to the code.
Any suggestions on how I might accomplish this?
Any help would be greatly appreciated.
Respectfully:
Ferlin.