ComboBox, no item can be selected

I fill a ComboBox at runtime before showing it.
The box is empty; clicking the dropdown button shows the items, but no item can be selected.
Even when I set TopIndex to 0, the box remains empty.

What's wrong ? The ComboBox is not data bound.
It was once, but the data control was removed,
and the fields "DataField", "DataFormat", "DataMember" and "DataSource" are all empty.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

GregJenningsConnect With a Mentor Commented:
I'm sure you've checked this, but...have you checked the Locked property?
Richie_SimonettiIT OperationsCommented:
Using .text property from combo control could helps.
As GregJennings sugests, you will get that effect if the ComboBox .LOCKED property is set to True.
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Suat OzgurWeb / Application DeveloperCommented:
please try setting combobox.listindex=0 runtime.

PC-AlexAuthor Commented:
Thank you all! It was the Locked property, and Greg was the first one to give the hint, so he gets the points.

I had interpreted "Locked" as a property that prevents a user from typing custom text into the combo box control ... now I know this was wrong.
Suat OzgurWeb / Application DeveloperCommented:
It is also possible but not by Locked Property; (You may already know this)

DropDown Combo Style prevents a user from typing custom text.

PC-AlexAuthor Commented:
Right, stuat, thanks for the hint.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.