We have a listbox and hae selected the item from the list we want and yet cannot appear to transfer the value to label elsewhere. What property stores the value selected from the list of items?
ListBox1.SelectedItem will actually return the Object that is currenty selected. If you populated the list box with strings, this will work fine. If you populated it with a dataset, it will return {datarow}. In that case you want to use:
ListBox1.SelectedValue
which will return the Value member of the selected item.
-Rick
----------------------
If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.