Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Listbox change problem

Posted on 2002-06-05
7
Medium Priority
?
251 Views
Last Modified: 2010-05-02
Hello,
I have the following problem.
In one of my VB forms i have a list box with values from db. But the list box is just enough to show a single entry. But it contains the key field so when it changes i have to change values for other fields in the screen.
But when the user clicks on either the up or down buttons of the listbox the value that is displayed in the listbox changes but it will not be selected and hence all the other field values remain the same.
Since there is no change event how should i take care of this issue?
0
Comment
Question by:ravi_raj123
[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
7 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 7057179
try to put ur code in the Click even instead of Change event of the List Box
0
 
LVL 5

Expert Comment

by:rpai
ID: 7057182
Please close all your open questions:-
Questions Asked 13
Last 10 Grades Given A A B B A B B  
Question Grading Record 7 Answers Graded / 7 Answers Received
0
 
LVL 3

Expert Comment

by:SirNick
ID: 7057183
Hi

Have you tried the scroll event?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 4

Expert Comment

by:Steve Sirica
ID: 7057284
Why not just use a combo box instead of a list box?  It sounds like it would be a better fit here.  You use a list box when you want to show a few items at once...you're only showing one.  At least a combo box would show the selected one, once you scroll the selected item out of view in a list box it can get confusing to the user.

Just a thought..
Steve
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7057477
I am with SSirica's comment.
0
 

Accepted Solution

by:
HobbitHouse earned 200 total points
ID: 7057900
check out the topindex property.  you can always query what element is displayed in a one-line display list box.
0
 
LVL 4

Author Comment

by:ravi_raj123
ID: 7058617
Thanks HobbitHouse for your answer.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses

705 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