Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Read Listbox items

Posted on 2004-10-12
3
Medium Priority
?
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

722 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