The problem is, once the SmallImageList is set to imgList1, it never
“releases” the icon spacing, even when the SmallImageList is set to null.
The item is always indented the same whether there is an icon or not.
any solution?
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.
This is an unusual thing to do, the .NET ListView wrapper wouldn’t handle it. You could try recreating the native Windows control to reset it. Not sure it this will have side-effects, you’d have to try. Add a new class to your project and paste the code shown below. Compile. Drop the new control from the top of the toolbox, replacing your original.