Board index » delphi » TComboBox and property Text

TComboBox and property Text

Hello,

I have the following problem:

I use a TComboBox-Class with the style csDropDownList.
How can I set the property Text by program ?

Thomas Gloeckler

 

Re:TComboBox and property Text


A combobox with csDropDownList style must have text that corresponds
to an item in its
list component. To set this use the itemindex property to ppick an
item (-1 means no item)
Unfortunately, itemindex is not published so you must do it in code
not at design time.

David Hewick

Other Threads