Question

Is there any way to set the bounds of a all ListView items in LargeIcon mode to a specific size?

I want to manually draw a rounded rectangle background for each of the items, but in the DrawItem event e.Bounds differs based on the state of the items.

Thanks.

Was it helpful?

Solution

Use SystemInformation.IconSpacingSize to discover the size of the grid square used to arrange icons in LargeIcon mode.

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