[Gambas-user] ListBox to show always the last item added
Charlie Ogier
charlie at cogier.com
Mon Sep 16 17:08:40 CEST 2019
Hi Rolf,
This works well and you don't need to know what the last item is: -
Public Sub Form_Open()
ComboBox1.list = ["One", "Two", "Three", "Four", "Five", "Six"]
ComboBox1.Text = ComboBox1.list[ComboBox1.list.Max]
End
Charlie
On 16/09/2019 11:34, Rolf-Werner Eilert wrote:
> How is it possible to get a ListBox always showing the last added item?
>
> I know there was a way or a property or some workaround, but I don't
> remember it.
>
> And isn't there an event that says "something new has been added to
> the control" or "something has changed"?
>
> Thanks for any input!
>
> Rolf
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
More information about the User
mailing list