Results 1 to 20 of 20

Thread: [RESOLVED] How do I highlight a single listview gridline?

Threaded View

  1. #7
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: How do I highlight a single listview gridline?

    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

    Code:
    Private Sub ListView1_ItemCheck(ByVal Item As MSComctlLib.ListItem)
       Item.Selected = True
    End Sub
    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.
    Last edited by baja_yu; May 21st, 2010 at 12:17 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width