Solved

Read Listbox items

Posted on 2004-10-12
3
349 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

948 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now