kolbe Active Member Licensed User Longtime User May 15, 2012 #1 I'm using a listview once and setting the item height and label textsize then adding singlelines. Later on I clear the listview and use it again setting different height and textsize once again adding singlelines. The second time I use it some of the lines have the original height and textsize, some have the second. What's going on here?
I'm using a listview once and setting the item height and label textsize then adding singlelines. Later on I clear the listview and use it again setting different height and textsize once again adding singlelines. The second time I use it some of the lines have the original height and textsize, some have the second. What's going on here?
klaus Expert Licensed User Longtime User May 15, 2012 #2 Try to add a DoEvents statement after having reset ItemHeight and TextSize. The attached small test program works fine. Best regards. Attachments ListViewProperties.zip ListViewProperties.zip 5.8 KB · Views: 340 Upvote 0
Try to add a DoEvents statement after having reset ItemHeight and TextSize. The attached small test program works fine. Best regards.
kolbe Active Member Licensed User Longtime User May 18, 2012 #3 Thanks for the tip. What worked for me is putting the doevents after you change the properties but before you add new items. Upvote 0
Thanks for the tip. What worked for me is putting the doevents after you change the properties but before you add new items.