Home Forums WinForms controls Other WinForms controls WinComboBox Reply To: WinComboBox

User (Old forums)
Member
Post count: 23064

What you need to do is set the AllowFreeText property to true, set the text you want in the TextBox of the WinComboBox, and then revert the AllowFreeText property to false. This will make the text displayed in the ComboBox, and the user will not be able to edit.

i.e.:

winComboBox1.AllowFreeText = true;
winComboBox1.TextBoxArea.Text = “Please select one”;
winComboBox1.AllowFreeText = false;

Imported from legacy forums. Posted by André (had 302 views)