Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement