|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Display Icons for the Windows Forms ListView Control
The Windows Forms ListView control can display icons from three image lists. The List, Details, and SmallIcon views display images from the image list specified in the SmallImageList property. The LargeIcon view displays images from the image list specified in the LargeImageList property. A list view can also display an additional set of icons, set in the StateImageList property, next to the large or small icons. For more information about image lists, see ImageList Component (Windows Forms) and How to: Add or Remove Images with the Windows Forms ImageList Component.
To display images in a list view
These properties can be set in the designer with the Properties window, or in code.
These properties can be set in code, or within the ListViewItem Collection Editor. To open the ListViewItem Collection Editor, click the ellipsis button () next to the Items property on the Properties window.