Solved

ComboBox, no item can be selected

Posted on 2001-08-04
7
213 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Write data from SQL to CSV file - position 1 59
Access query that references subform 5 47
VBA Shell can't Find Word document 11 92
Protecting vb6 & .Net code Obfuscation 18 121
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

775 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