-
Hi,
I'm changing some of my programs to use a ListView instead of a ListBox.
1. On selecting a record how do I pass the info from the fifth column to another Sub? (I have .FullRowSelect = True)
2. I'm dynamically adjusting the column widths to the maximum length of the data going into the column. Is there a way to dynamically adjust the width of the listview box itself to be the sum of the column widths?
Thanks,
Al.
-
2)
ListView1.Width = ListView1.ColumnHeaders(1).Width _
+ ListView1.ColumnHeaders(2).Width _
+ ListView1.ColumnHeaders(3).Width + 60
-
Item 1 - In listview, the first column is the item, and any columns after that are subitem(1) thru ?. To access the fifth column you would do something like:
variable = frmForm.lstListView.listitems(row).subitem(4)
-
Thank you.
Hi,
I just discovered ListViews vs ListBoxes. I've been setting the ListBox font to fixed-width, e.g. Courier, to get a column look.
Al.