Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

general

Posted on 2008-10-29
3
Medium Priority
?
158 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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

877 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