I'm writing status messages to a listbox using the item.add("XXX") command which appends the existing list whenever something happens (for example, receives data from a socket).
I would like to have the last item selected using the listbox.selectedindex = listbox.items.count - 1 so that the listbox keeps scrolling down with the data added.
Is there an event that monitors the change in the listbox count so it happens automatically? I just don't want to add a routine to each location I add data to the listbox.
Thanks!
I would like to have the last item selected using the listbox.selectedindex = listbox.items.count - 1 so that the listbox keeps scrolling down with the data added.
Is there an event that monitors the change in the listbox count so it happens automatically? I just don't want to add a routine to each location I add data to the listbox.
Thanks!