Solved

general

Posted on 2008-10-29
3
140 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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