Change ListViewItem Bounds
-
19-09-2019 - |
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.
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