[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing the end of a list


Am 07.08.24 um 14:06 schrieb Bruce Steers:


On Wed, 7 Aug 2024 at 11:42, Rolf-Werner Eilert <rwe-sse@xxxxxxxxxx <mailto:rwe-sse@xxxxxxxxxx>> wrote:

    A ListBox is to show entries which during runtime become more and more
    (log entries).

    How can I assure that the latest entries (at the bottom of the list)
    are
    shown whenever the list becomes longer?

    Thanks for any input!

    Regards
    Rolf


Maybe set the Index to the last item after adding things

ListBox1.Index = ListBox1.Count - 1

it should make it visible.

BruceS

Yes, thank you. I had this idea too, but what I missed was that I added the entries all in one List item - so it marked everything and landed in the middle of the entries :)

Now I found it, it runs fine this way.

Regards
Rolf


References:
Showing the end of a listRolf-Werner Eilert <rwe-sse@xxxxxxxxxx>
Re: Showing the end of a listBruce Steers <bsteers4@xxxxxxxxx>