Link to home
Start Free TrialLog in
Avatar of KeithTeo
KeithTeo

asked on

How to insert a text in the Edit box of a ComboBox?

How to insert a text in the Edit box of a ComboBox without adding the text to the combo list?
Avatar of kobib
kobib

Hi KeithTeo,

Try to use YourComboObject.AddString (String);

where the variables define as:
           CComboBox YourComboObject;
           char Srting[20] = "This is my string";

Hi!

I would suggest that you use:

  ComboObject.SetWindowText("your string");

/Micke
Avatar of KeithTeo

ASKER

I do not want to add to the combo list (as stated in question).
So what do you want to do, can you make yourself more clear?

you said:

>>How to insert a text in the Edit box of a ComboBox
ASKER CERTIFIED SOLUTION
Avatar of geo_134
geo_134

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As Micke stated, use ComboObject.SetWindowText("your string");

Errol