944,039 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5450
  • VB.NET RSS
Jun 29th, 2006
0

Populate Listboxes with table data

Expand Post »
I am attempting to populate a listbox with data from a table and don't have the methods .dataValueField or .dataTextField or .DataBind in my selection menu. Can anybody help me understand why? ex. lstServices.DataValueField = "item#"
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vbnewbie is offline Offline
1 posts
since Jun 2006
Jun 30th, 2006
0

Re: Populate Listboxes with table data

To populate a listbox use something like this:

VB.NET Syntax (Toggle Plain Text)
  1.  
  2. lstServices.items.add("xxx").

That will add the item "xxx" to it.
Reputation Points: 23
Solved Threads: 10
Junior Poster
williamrojas78 is offline Offline
111 posts
since Jun 2005
Jun 30th, 2006
0

Re: Populate Listboxes with table data

I mean, you have to connect to the table, and get the data from the field, and then add it to the listbox.
Reputation Points: 23
Solved Threads: 10
Junior Poster
williamrojas78 is offline Offline
111 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: error : Could not access CDO.Message object
Next Thread in VB.NET Forum Timeline: SQL Tables export





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC