Hi: Think of a ListBox as a simple list of objects like a list of names.
Each item you arrow up and down in the list has one entry, the name.
You can click on a name and have your program do something.
Think of a ListView as a list of things.

Each item in the list can have objects like TextBoxes, ListBoxes and other 
objects.
In a ListBox there is usually a single list going from top to bottom like:
Row1: Jack Pratt
Row2: Linda Lovely
Row3: Pat Patterson
Row4: Jonny Smith
and so on.
You can set up a ListView to act like a ListBox but working with a ListView is 
more complicated.
Now, a ListView might have rows with a TextBox in column1 of each row and a 
ListBox in Column2.
So you might have a name like Linda Lovely in Row1 Column1 with a list of her 
hobbies in a ListBox in Column2.
You could then set up something where as you move up and down the list of names 
in each row the values in the ListBox of hobbies changes to reflect the hobbies 
for each name ie each person.
This can also be done more simply by using 2 ListBoxes but that is not the 
question here but rather what the fundemental diferences are between a ListBox 
and a ListView.
I think that something like OutlookExpress might be a listView where you can 
cursor up and down a list of folders like InBox, OutBox, SentItems and so on 
then tab and see all the e-mail messages within each folder without having to 
click anything.
A ListView is much more complicated to work with in code than a ListBox.
Perhaps others will have more insight into the diferences and it matters 
greatly whether you are talking about using a Web Framework ListView or a 
WindowsForms ListView.
Rick USA
  ----- Original Message ----- 
  From: David 
  To: [email protected] 
  Sent: Monday, January 20, 2014 3:49 PM
  Subject: ListBox, or ListView


  When creating the XML for one of my projects, I see the options for adding 
either a ListBox, or a ListView to my Dialog. Could anyone please try to 
explain the real difference of these two controls? Are there difference in what 
will be presented to the user, or is it merely a matter of different 
programming in your code? Sorry for a dumb question, but I want to go for the 
better control - right from the start - so thought I would ask for some 
experienced assistance.

  Thanks,

Reply via email to