Hi Krool
I can't add an image at runtime to listview as I was doing with MS listview
Is there a workaround?Code:picBG.Width = lvw.Width picBG.Height = lvw.ListItems(1).Height * (lvw.ListItems.count) picBG.ScaleHeight = lvw.ListItems.count picBG.ScaleWidth = 1 picBG.DrawWidth = 1 picBG.Cls For i = 1 To lvw.ListItems.count If lvw.ListItems(i).Text = "Yes" Then lvw.ListItems(i).Checked = True picBG.Line (0, i - 1)-(1, i), &H80FFFF, BF Else lvw.ListItems(i).Checked = False picBG.Line (0, i - 1)-(1, i), &HFFFFFF, BF End If Next i lvw.Picture = picBG.Image Else picBG.Cls lvw.Picture = picBG.Image End If
OCX version 1.8
thank you




Reply With Quote