Syntax for changing text properties in a ListView
-
13-03-2021 - |
Question
I have about 25 entries in a ListView by using:
ListView1.AddTwoLinesAndBitmap2("Entry Title","Entry Description",Bitmap1,1)
I'm looking to change the text size and color of the Entry Title and Entry Description. I tried setting properties as if it were a single line but had no luck. I'm not sure how to reference the first line and second individually.
Solution 2
Solved this by using TwoLinesAndBitmap instead of TwoLinesAndBitmap2... does TwoLinesAndBitmap2
OTHER TIPS
To modify the title appearance you should change:
Dim lv As ListView
lv.TwoLinesAndBitmap.Label.TextSize = 15
It doesn't matter if you use AddTwoLinesAndBitmap or AddTwoLinesAndBitmap2.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow