I have a c# visual studio program that uses combo boxes on a windows form. I would like to have EXACTLY the functionality of the .net 4.5 Combobox.IsEditable function:
http://msdn.microsoft.com/en-us/library/system.windows.controls.combobox.iseditable%28v=vs.110%29.aspx (I need the readonly=true, iseditable=false functionality)
Similar questions to this can be found dotted around the internet everywhere (eg. How to disable editing of elements in combobox for c#?) and the answer is always the same: "Set dropdownstyle to dropdownlist"
However, I cannot do this! In this program I frequently need to set and retrieve the text value of the combo box from within my code which is not possible with the dropdownlist style.
Is there any way I can get the .net 4.5 iseditable function into my .net 4 combobox?
Thanks in advance, Anya