Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox and ListBox
Message
 
To
28/11/2001 09:38:10
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586449
Message ID:
00587077
Views:
16
>I don't know if the itemdata property exists in VB.NET. I was able to bind the dataset to the listbox by using:
>
>ListBox1.DataSource = lADO.objDataSet.Tables("employee")
>ListBox1.DisplayMember = "empname"
>ListBox1.ValueMember = "id"
>
>However, I can't figure out how to retrieve the "id" or "empname" information.
>Just for test purposes. I would like to iterate through the items in the listbox and display in a message box the empname and id. I can't believe I am having such trouble with an elementary thing. This was easy in VFP. I appreciate the help.

I haven't notice that you were on .Net.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform