i need code to return the selected item in a listbox
Printable View
i need code to return the selected item in a listbox
Selected index: listboxname.ListIndex
Selected item text: listboxname.Text
thx
:cool:
The prefered method isQuote:
Originally posted by filburt1
Selected item text: listboxname.Text
VB Code:
Msgbox List1.List(List1.ListIndex)
One less reference my way. :)
true, but that's what MSDN uses, and what's a reference here and there?...;)