Aug 20, 2005 #1 Lxmm Programmer Joined May 10, 2005 Messages 32 Location GB Hi, Is there a way to change the back color of certain rows in Listview control in vb.net? Thanks
Aug 23, 2005 #2 Hokkie MIS Joined Nov 21, 2001 Messages 77 Location NL yes set the listview.listitems(i).backcolor and listview.listitems(i).forecolor properties. you can set them to a member of system.drawing.colors. For instance: Code: ListView1.ListItems(1).BackColor = System.Drawing.Color.Crimson ListView1.ListItems(1).ForeColor = System.Drawing.Color.Black __________________ code is enduring Upvote 0 Downvote
yes set the listview.listitems(i).backcolor and listview.listitems(i).forecolor properties. you can set them to a member of system.drawing.colors. For instance: Code: ListView1.ListItems(1).BackColor = System.Drawing.Color.Crimson ListView1.ListItems(1).ForeColor = System.Drawing.Color.Black __________________ code is enduring
Aug 23, 2005 Thread starter #3 Lxmm Programmer Joined May 10, 2005 Messages 32 Location GB Thank you. Upvote 0 Downvote