PDA

Click to See Complete Forum and Search --> : Listbox help please!!!


john_murphy
Jan 27th, 2000, 04:46 PM
I have a list box and when I do

list1.additem "jjjjjjj"

I want the last item to be displayed

so that if the listbox is full it goes to the bottom and selects the last one.
what I want is something like below
list1.select (List1.ListCount - 1)

except there is no list1.select only selected to see if it is selected

help please

Thanks
John Murphy
Galway
Ireland

Mark Sreeves
Jan 27th, 2000, 05:32 PM
try this:
it highlights it though!


List1.ListIndex = List1.ListCount - 1



------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

john_murphy
Jan 27th, 2000, 06:50 PM
Thanks a million this is exactly what I wanted.

John