Listbox change problem

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?
Who is Participating?
HobbitHouseConnect With a Mentor Commented:
check out the topindex property.  you can always query what element is displayed in a one-line display list box.
Mohammed NasmanSoftware DeveloperCommented:
try to put ur code in the Click even instead of Change event of the List Box
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
Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.


Have you tried the scroll event?
Steve SiricaSenior Web Application EngineerCommented:
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'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..
Richie_SimonettiIT OperationsCommented:
I am with SSirica's comment.
ravi_raj123Author Commented:
Thanks HobbitHouse for your answer.
All Courses

From novice to tech pro — start learning today.