Solved

general

Posted on 2008-10-29
3
135 Views
Last Modified: 2010-04-23
can i get some info on each topic of the following
ListBox
Process as array: Items(index)
Items, SelectedIndex, SelectedItem properties
Items.Count, Add, Insert, RemoveAt, Remove

thank you.
0
Comment
Question by:elrayiss
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
David L. Hansen earned 250 total points
ID: 22837018
Try:
http://www.java2s.com/Tutorial/VB/0260__GUI/0260__ListBox.htm
and
http://www.devx.com/dotnet/Article/20719/0/page/2

Basically, think of the listbox as a collection "rows" or strings (these are the items). So, in your code if you want to add something to it you do something like this:

Dim ListBox1 As New ListBox

        ListBox1.Items.Add("Miami")

        ListBox1.Items.Add("Dallas")

Open in new window

0
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 22837032
Normally, you wouldn't Dim a ListBox, you'd place it with your mouse.  But after that you can programatically add items as shown above.  Then, if you do the following you'll get a count returned telling your program how many "row" or items are in the ListBox.

myInteger = ListBox1.Items.Count

Open in new window

0
 
LVL 20

Expert Comment

by:Venabili
ID: 22839131
What about using Google? What exactly is not clear on these?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Code enhancement 5 13
Hide Tab Page 3 20
Round up to 100% in .NET 10 45
Visual Studio editor? 1 18
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article will show, step by step, how to integrate R code into a R Sweave document
This video teaches viewers about errors in exception handling.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

746 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

18 Experts available now in Live!

Get 1:1 Help Now