ListView vs. ListBox in my Program

T

The Confessor

I currently have a listbox in my program which I populate with data from
a random access file as follows:

For T = 1 To HighestPointID
FileGet(1, Point(T), T)
ListBox_Point.Items.Add(T & " Lat: " & Point(T).Latitude...)
Next

I end up with data in the following format in each ListBox line.
1 Lat: 42.5003, Long: -70.9249, Ele 161

The obvious advantage of ListView in Detail mode is that the information
can been presented in a more horizontally compact format, with the labels
shown only at the top of the ListView control.

My question deals with the possibility of another advantage to using
ListView:

Can the user click on any row/column combination in a ListView control
(SubItems as well as Items) and edit the contents, which could then be
passed back to the original array via an event detecting such a change?

Currently the user must select the relevant line in my program's listbox,
at which point the values are copied from the array into three TextBoxes.
After changing the values, the player must click a button to update the
array and regenerate the ListBox.

If a ListView control can ease functionality in that way I'll start
implementing it immediately.

Otherwise, since my lack of familiarity with Collections will make this
first excursion a damnably difficult, I'll put it further down on my to-
do list.

Thanks in advance for any helpful replies.

The Confessor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top