Add Columns and Titles Effortlessly to a ListView Control

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Beginning

Author: Bill

Version Compatibility: Visual Basic 5

More information:
Add all of your titles to a ListView and size their column-widths with a single call to one procedure. Documentation, troubleshooting notes, and the author's notes are contained within the code-sample. Sample Call: AddColumnsToViewBox "First", 30, "Second", 70

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: