Board index » delphi » Listbox question.

Listbox question.

If I do a Listbox1.itemindex := 50;  (out of say, 200 items)  how do I
make that selected item show up at the top of the visible listbox
instead of randomly within the box?  Sometimes it is at the bottom,
sometimes at the top or in the middle.

Thanks,  Terry

 

Re:Listbox question.


Quote
Terry Neckar wrote:

> If I do a Listbox1.itemindex := 50;  (out of say, 200 items)  how do I
> make that selected item show up at the top of the visible listbox
> instead of randomly within the box?  Sometimes it is at the bottom,
> sometimes at the top or in the middle.

> Thanks,  Terry

ListBox1.TopIndex := 50;

Chris Jobson

Other Threads