Default value for TComboBox
Posted on 1998-09-27
Delphi3, NT40 - I have a TComboBox of type csDropDownList. It has two values, All and Selected. What I'm trying to do is to set a value in the combobox when the form opens. I can't seem to do this. I have tried setting the value of Text in the Object inspector. It simply disappears when I move to another column in the object inspector. (It only does this when Type is set to csDropDownList).
I have tried programatically (On Form Activate) to set:
ComboBox.Text := 'All';
as well as
ComboBox.SelText := 'All';
Neither worked. How do I set this value?