I should have told you that I queried a db table and set the display member and value member of the listbox to the appropriate fields of the dataset (from the db query). You said that each item in the listbox is an object. In your example, they are of the type Province. In my case (listbox...
In Windows Forms, for ListBox class, is there a method available to get the associated value to any specified item in the list?
There is a GetItemText method, but there is no GetItemValue. I don't know how to get the value.
I know there is a SelectedValue property. I want to be able to...
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.