1
Answer

How to change/modify images in ListView

Ask a question
Zahid Mir

Zahid Mir

16y
2.6k
1

After adding image to a listview, how can we change them. I tried the follwong but did not work. Please advise.

==================

Dim lvItem1 As New ListViewItem

lvItem1.ImageIndex = intImageIndex  

If str_Status = "U" Then 'Update text and image in listview

    lv_Messages.Items(intRow).Text = strTimeStamp   ' This works OK

    Me.lv_Messages.Invalidate(lv_Messages.Bounds)

    Me.lv_Messages.Update()

End If


Answers (1)