Results 1 to 2 of 2

Thread: Lisbox Scroll

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Cleveland,OH
    Posts
    42

    Post

    Is it possible to have a list box auto scroll to the last entry, and not stay at the top waiting for the user to manually scroll down? I have played with setting the focus and then sending a {down} key but that is kind of lame.

  2. #2
    Junior Member
    Join Date
    Apr 1999
    Location
    Sydney, NSW, Australia
    Posts
    22

    Post

    you can play with the listboxes TopIndex property. To scroll down to the bottom-most item in a listbox, first find out how many items the height of the listbox can accommodate, and then do some calculations to find out what index should be at the top, and then set the listbox's TopIndex property to whatever.

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