Cannot set combobox readonly

I want to prevent user to type into combobox. But if I set it readonly, I cannot select any item, because it looks like combobox is empty. If I unset readonly, items appear - only after script in writer is run second time…

Can this be done at all?

Also, combobox’s “enabled” property doesn’t seem to have any effect at all.

@MarjanMr Please do not click on post as wiki when asking/answering a question. It helps no one.

Hello @MarjanMr,

One of the purposes of the combo box is to allow the entry of items other than what is in the list. If you do not want this you should be using a list box.

The Enabled property works the same on all controls. If set to Yes it may be selected. If set to No it cannot be selected.

That’s right, one of the purposes. And I cannot decide, which purpose I will use.
Anyway, listbox, turned into dropbox, does work.
Thank you for your answer.