one listbox controls population of another listbox
Posted on 2006-03-28
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?