Solved

ComboBox, no item can be selected

Posted on 2001-08-04
7
210 Views
Last Modified: 2010-05-02
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
Comment
Question by:PC-Alex
7 Comments
 
LVL 2

Accepted Solution

by:
GregJennings earned 100 total points
ID: 6352202
I'm sure you've checked this, but...have you checked the Locked property?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6352270
Using .text property from combo control could helps.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6352319
As GregJennings sugests, you will get that effect if the ComboBox .LOCKED property is set to True.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:Suat Ozgur
ID: 6352487
please try setting combobox.listindex=0 runtime.

suat
0
 
LVL 1

Author Comment

by:PC-Alex
ID: 6352849
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
 
LVL 17

Expert Comment

by:Suat Ozgur
ID: 6352885
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
 
LVL 1

Author Comment

by:PC-Alex
ID: 6352905
Right, stuat, thanks for the hint.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now