listbox question

pruebens

Well-known member
Joined
Nov 21, 2002
Messages
71
Here is what I want to do, I have a listbox and a series of about 16 textboxes on a form. THe listbox gets its info from a datasource (SQL) that I have working just fine. I cant seem to figure out how to double-click on an item in the listbox and have that item appear in the textboxes. Can someone help me out on this? I know its an ambiguous question of sorts but I tried to explain it as best I could. Thanks in advance.
 
add the selectedindex changed event.

in the event...

select case (listbox1.selecteditem.value)

case 0
textbox1.text = listbox1.selecteditem.text
case 1
textbox2.text = listbox1.selecteditem.text
...
end select


thats a pretty simple way, but should help you out.

Aaron
 


Write your reply...
Back
Top