You don't have to set the FullRowSelect on every click/check event. Just set it once on Form Load or even in design mode. Also, this line
If Item.Checked = False Then Item.Checked = True
will make it impossible to uncheck an item.
To highligh the checked item try
And, just to note because I think you missunderstood the purpose, If ListView1.CheckBoxes = True does not check if an item is Checked or not but if the ListView has checkboxes turned on or not. If you set it to false Checkboxes wont be displayed.Code:Private Sub ListView1_ItemCheck(ByVal Item As MSComctlLib.ListItem) Item.Selected = True End Sub




Reply With Quote