Solved

Combo Boxes

Posted on 1998-11-24
2
211 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

695 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