Solved

Read Listbox items

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

778 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