Solved

general

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

734 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