CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Location
    singapore
    Posts
    2

    Highlighting of list items

    Upon clicking on a list item, the selected node is highlighted. However, once the control loses its focus, the highlight disappears as well.

    I have tried using the following code
    set listview1.drophighlight = listview1.selecteditem

    The above code only highlights one node. Is there a way to hightlight muliple nodes(in the case where the mulitselect property is set to true) even if the controls loses it focus?




  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Highlighting of list items

    You need to set the 'HideSelection' property to false - this means that the listview items will appear selected even when it doesn't have focus.

    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured