• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

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.
0
PC-Alex
Asked:
PC-Alex
1 Solution
 
GregJenningsCommented:
I'm sure you've checked this, but...have you checked the Locked property?
0
 
Richie_SimonettiIT OperationsCommented:
Using .text property from combo control could helps.
0
 
Arthur_WoodCommented:
As GregJennings sugests, you will get that effect if the ComboBox .LOCKED property is set to True.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

suat
0
 
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.
0
 
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.

regards
suat
0
 
PC-AlexAuthor Commented:
Right, stuat, thanks for the hint.
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now