Results 1 to 8 of 8

Thread: [RESOLVED] Don't scroll Listview when an Item is added?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    cali
    Posts
    243

    Resolved [RESOLVED] Don't scroll Listview when an Item is added?

    How can I keep a Listview scrolled to the bottom without any flickering?

    With a Listbox, List1.TopIndex = List1.NewIndex works, It doesn't look like it scrolls back up when items are added and then scrolled back down.

    Is there such a thing for a ListView?


    Using API flickers, LockUpdate doesn't correct it.
    Items are constantly being added to the ListView.
    ......

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    cali
    Posts
    243

    Re: [RESOLVED] Don't scroll Listview when an Item is added?

    Does the item have to be selected for it to work?

    Code:
            Dim ItemToAdd As ListItem
            
            Set ItemToAdd = .ListItems.add(, , "hello")
            ItemToAdd.SubItems(1) = "asdf"
            
            ItemToAdd.Selected = True
            ItemToAdd.EnsureVisible
            ItemToAdd.Selected = False
            
            Set ItemToAdd = Nothing
    ......

  4. #4

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    cali
    Posts
    243

    Re: [RESOLVED] Don't scroll Listview when an Item is added?

    Seems like it works without selecting with the ListView from Common Controls 6.0

    But when using Common Control 5.0, it doesn't work without selecting the item first.
    ......

  6. #6

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    cali
    Posts
    243

    Re: [RESOLVED] Don't scroll Listview when an Item is added?

    I can't get system theme (manifest file) to work with 6.0.
    ......

  8. #8

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