Delphi tips :

How to make the last added item of a ListBox visible

 
When adding items to a ListBox, there comes a time that the last added item is not visible anymore.
Solution: with the following line of code, the ListBox will display all of the LAST items that fit into the box, with the very last item at the bottom:
ListBox1.TopIndex := ListBox1.Items.Count - 1;

TOP   DelphiLand Club Membership  DC Library  Forum  Forum Archives  Crash Course Delphi  Tips  Source Code  Downloads  Links