Link to home
Create AccountLog in
Avatar of rmmarsh
rmmarshFlag for United States of America

asked on

one listbox controls population of another listbox

I apologize in advance if this has already been asked, but I couldn't find a solution.

I have two listboxes.  When I click on listbox1, it controls what is placed in listbox2.  I then want to select something from listbox2 and put both selections in two textboxes.

My problem is when I select from listbox1, it populates listbox2 and then listbox2, thinking it's index has been changed (it has, just not manually) populates the two textboxes. The index on listbox2 is set to 0, but that is a valid selection.

How can I tell if the listbox2 item has been manually selected or is just being populated?
ASKER CERTIFIED SOLUTION
Avatar of e1v
e1v

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of rmmarsh

ASKER

Thank you, that did it...