I am using a Winforms ListBox as a small list of events, and want to populate it so that the last event (bottom) is visible. The SelectionMode
is set to none. The user can scroll the list but I would prefer it start out scrolled to the end.
Looking at the lack of support for things like ScrollIntoView
, EnsureVisible
, I am assuming I will need to create a custom control that inherits from ListBox; however I'm not sure what to do from there.
Some pointers?
listBox1.SelectedIndex = listBox1.Items.Count - 1;
not work for you? – M.BabcockSelectionMode
is not set toNone
. I need to prevent selecting items in this particular list (to avoid user confusion). – JYelton