I have a Listview showing an archive of documents.
I want to add an icon to a subitem when the document was add after my last login. So I know what is new
The code doesnt work. It only adds the number 5 after the text.Code:If dr("Id") > iLast Then docImage2 = ImageList1.Images.Count items.Add(New ListViewItem(New String() {"", dr("Document Name").ToString & docImage2, dr("DISnummer").ToString, dr("XPostnummer").ToString, dis, dr("Id").ToString, dr("Document Location").ToString}, docImage)) End If
Is is not possible to add icons to subitems?




Reply With Quote
