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
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe normally the small list view uses 16×16 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 32×32 icon is being used and scaled down to 16×16 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.