Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the optimal icon size to use for a Windows Form Application List View item, (Small Icons View)

I am populating a Windows Forms List View with items, and each item is associated with an icon, I tried icons of size 16*16, and 32*32 but the icons seem either stretched or clipped. What is the optimal icon size to use

like image 643
Hassan Mokdad Avatar asked Dec 31 '25 18:12

Hassan Mokdad


1 Answers

I believe normally the small list view uses 16x16 icons, I've never had a problem using these. Bear in mind however that the listview uses an ImageList to store these, therefore it's actually storing an Image rather than an Icon. It might be that instead the 32x32 icon is being used and scaled down to 16x16 when you add it which could cause your problem. An easy way to check is to make your icons significantly different and ensure that you get the icon you're expecting.

like image 110
Ian Avatar answered Jan 02 '26 09:01

Ian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!