CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1998
    Posts
    3

    Listview - EnsureVisible



    Hi,


    I want to scroll a listview so that a specific listitem is displayed at the top - EnsureVisible usually displays it at the bottom. Does anyone know how to do this?


    TIA

    Andy

  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: Listview - EnsureVisible



    This might work:


    * Do an EnsureVisible on the last item in the list view.

    * Do an EnsureVisible on the item you want


    This should scroll upward, and stop when it is at the top. Of course, if it is one of the last items in the list, it will not be at the top.


    -Jim

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