Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 4

ColumnHeader Object and ColumnHeaders Collection of ListView Control in Visual Basic 6

If you want to use a ListView with a report format that has multiple columns for each ListItem, you must work with the ColumnHeaders Collection. ColumnHeaders is a collection of ColumnHeader objects.

Each ColumnHeader object identifies one column in a ListView. The ColumnHeaders Collection always contains at least one column for the ListItem itself. Additional columns can be added using the ColumnHeaders.Add method or removed with the ColumnHeaders.Remove method.

If you look back at the example of the Windows Explorer as an ImageList , you will see that it uses four columns. The first column— the icon and the filename—is the ListItem. This would be the first entry in the ColumnHeaders Collection. Additional columns are included for the file size, type, and modification date.

ListView Control topics


  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved