?
Solved

Combo Boxes

Posted on 1998-11-24
2
Medium Priority
?
212 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 450 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

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!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

800 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