Hi Tim. ListBox1.SelectedItem:= ListBox1.Count - 1;
Or, though I'm not entirely sure - send a CTRL+END message to the control (via the WM api). Assaf. -----Original Message----- From: kc0fcp [mailto:[EMAIL PROTECTED] Sent: Monday, September 05, 2005 5:51 PM To: [email protected] Subject: [delphi-en] Set TListbox scrolling to keep most recently added item visible? Is there a property or technique that can modify the TListBox vertical scrolling behavior so that the most recently added item is visible at the bottom of the window? The default behavior is that the scrolling "thumb" goes to the top of the scroll bar (the start of the list) whenever a new item is added. Since the newly added items is at the end of the list it is invisible if the listbox contains more items than can be shown without scrolling. I found the ScrollBy method, but it requires the number of pixels to scroll, which is not easy to determine. Thanks, Tim. ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

