Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Read Listbox items

Posted on 2004-10-12
3
Medium Priority
?
357 Views
Last Modified: 2008-03-10
I need some help reading items out of a Listbox one item (row) at a time and display the item in a Label  

Example: Listbox entries
1
2
3
4
5


Listbox items read one at a time and put into individual Labels one number per Label would read like this:
1 2 3 4 5

I know it don't work but something like: Label3.Text = ListBox2.Item
0
Comment
Question by:teamdad
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Hans Langer
ID: 12293233
Hi
Label3.Text = ListBox1.Items.Item(0)
GL
0
 
LVL 10

Accepted Solution

by:
Hans Langer earned 2000 total points
ID: 12293240
Or
Label3.Text = Convert.ToString(ListBox1.Items.Item(0))
0
 

Author Comment

by:teamdad
ID: 12293436
I'm still learning VB and learning the little things has been a big help here in this forum.

Thanks a bunch.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question