hi, i have a listbox and a textbox, when the user clicks on an item in the listbox, the textbox will display the index number of the item the user clicked on in the listbox. how can i do this?

ie:
text1.text = list1.selectedindex

hehe.