Solved

Combo Boxes

Posted on 1998-11-24
2
209 Views
Last Modified: 2010-05-03
I am currently writing a Visual Basic System and have a problem with combo boxes. I have for example a screen with a combo box and a text box. On form_load I read a table and fill the combo box with descriptions and its key. When a user selects the combo box he/she sees a list of descriptions. The key value is placed out of view to the right hand side of the description. The user then picks from the combo the description he/she wants and the description is now placed in the text box and its key is displayed in the combo. The only problem is that when I click the description the text box gets its description all right but I lose the value in the combo box.
The key is flashed in the combo box and then disappears so I am left with a empty combo box. I am running VB 5.0, this is obviously not a bug any answers????????.
0
Comment
Question by:calis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 150 total points
ID: 1446487
First of all, why don't you place the key in the itemdata collection of the combobox. Seems to be more what you want.

Second, it is a bug.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1446488
Here is the bug description:

http://support.microsoft.com/support/kb/articles/q168/8/24.asp?FR=0

BTW: Another workaround is to start a timer with a short delay and do it on the timer message and disable the timer again.
0

Featured Post

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!

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

730 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