Question

I have a ownerdrawing ListView with LargeIcon view mode and want to change ListViewItem's bounds property. This link does not help me, because the property SystemInformation.IconSpacingSize is read only. I need to have all 150x220px icons for drawing. Is there any ways or tricks for solving my problem?

Was it helpful?

Solution

Assigne an ImageList component to the ListView.LargeImageList property. If you draw images manually, there is not need to populate the ImageList with images. It is only important to set an appropriate value to the ImageList.ImageSize property. ListView items will be resized correspondingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top