C# & .Net 2.0 question (WinForms)
I have set of items in ComboBox
and non of them selected. I would like to show a string on combo "Please select item" in that situation.
Current implementation is just added empty item with such text on index 0 and remove it when user select one of following items. Unfortunately empty item is shown in dropdown list as well. How to avoid this situation or in other way - is there any way to show custom text on ComboBox
when no item is selected?
Answers below work when ComboBoxStyle
is set to DropDown
(ComboBox
is editable). Is there possibility to do this when ComboBoxStyle
is set to DropDownList
?