: : How do you use the listview control?
: Could be entirely different from what you need... <grin>
:
: : I want something that looks and acts like a listbox, but has multiple columns.
: ListView with FullRowSelect = True, HideColumnHeaders = True, View = lvwReport. In design mode, create the columns you need (they won't show, but you must specify their widths and text alignments), and in run time add the Items and SubItems you want.
:
: : With the right number of characters, the tab character works fine to make several columns, but that just doesn't work for me.
: The ListView will make you forget the tab ASCII code, and even the meaning of the word "tab"...
:
: : I had given up and made my own listbox, but it is sorely lacking in useability...
: I think the ListView and TreeView are the most complex pieces of software existing in the Windows world.
: _____________________________
:
ColdShine
: http://www16.brinkster.com/rafonline
:
:
I think I've figured part of it out, though it seems a bit clumsy. This is what I have so far:
Dim t As ListItem
Set t = ListView1.ListItems.Add(, , "C1")
t.ListSubItems.Add , , "C2"
t.ListSubItems.Add , , "C3"
A bit more and I may have it all worked out.
I assume I'll have to remove and re-add to move an item?
Is a column width of 0 the only way to hide one?