R
RD
In vb6 I could add items to a listbox using the add method and the itemdata
property could contain say the primary key of a Sql table (a long in all my
cases)
How do you add items to a listbox in vbnet in code, using a datareader, so
that one property of the listbox displays the string value that you want to
show but there is also stored in another property that which corresponds to
what was the itemdata in vb6 (the primary key of a sql table, long integer
type) that and that can be retrieved? It used to be
Mylistbox.itemdata(MyListBox(selecteditem)
I guess that was too simple ;-)
Thanks for any help,
Bob
property could contain say the primary key of a Sql table (a long in all my
cases)
How do you add items to a listbox in vbnet in code, using a datareader, so
that one property of the listbox displays the string value that you want to
show but there is also stored in another property that which corresponds to
what was the itemdata in vb6 (the primary key of a sql table, long integer
type) that and that can be retrieved? It used to be
Mylistbox.itemdata(MyListBox(selecteditem)
I guess that was too simple ;-)
Thanks for any help,
Bob