Solved

Combo Boxes

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 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

12 Experts available now in Live!

Get 1:1 Help Now