How To Set the Column Width of Columns in a ListView Control (147666)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q147666 SUMMARY
The width of a column in a ListView control cannot be set by using a
property and/or method when the View property is set to List. This article
provides a generic procedure that can be used to set the width of a column
in a ListView control when in List view. This function can also be used to
set the column width when in Report view, although this is unnecessary
because the column width can be set via the Width property of the
ColumnHeader object when in Report view.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB147666 |
---|
|