AutoSize ListView Column Headers
Version Compatibility: Visual Basic 5
Please note that the column is sized from the control's font, ie the one set from the Font property. So if you have a ListItem object with a long line of text, and it has it's Bold property set, the column may not be resized to show the full text.
To resize a single column, use something like this:
LV_AutoSizeColumn ListViewControl, ColumnHeaderObject
To simply autosize all columns, use this:
Instructions: Copy the declarations and code below and paste directly into your VB project.