General information
Title:
Adding objects to list box in .NET
I am working on an app in .NET (VB.NET). I want to display a list box with text and the value of the selected item to be from my database field. I am aware that you add objects to the list box as items. Something like this is what I have in mine....
dim obj as new clsListItem
obj.display = "text to display"
obj.itemValue = 12345
lstProducts.items.add(obj)
How do I have my text display properly? When I get the selected item, will it return the object?
Thanks in advance!
Tim
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only