Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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