CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2001
    Location
    Kerala,India
    Posts
    650

    How to control scroll bar in a list view

    Hi i want to set the scroll bar position of my list view as per my need. how can i do that. Its urgent can anybody help me out in this.

  2. #2
    Join Date
    Nov 2002
    Location
    Oakville, Ontario
    Posts
    48
    could you maybe describe your "need" in further detail?

  3. #3
    Join Date
    Nov 2002
    Location
    Oakville, Ontario
    Posts
    48
    I gotta go home and make dinner now....I will check again on this issue tomorrow - in the mean time, I can tell you that my current app uses List Views everywhere and I at one point ran into a "scrolling" problem. My code was selecting a row from the list view but would not scroll so the user could see it. I used the EnsureVisible method, and that did the trick. If by chance you want to scroll row by row, the only thing I can think of is to use code to first select the row, and then use the EnsureVisible method to make sure it appears. You could also make the height two rows high making it look like a ticker reader. Just a few thoughts - hope that helps, cheers

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