I want to scroll the selected item in the list box. To do this, I now use one line of code in the event Listbox1_SelectionChanged, but scrolling does not work. I tried the same thing with the push of a button, which works fine.
Listbox1.ScrollIntoView(Listbox1.Items[Listbox1.SelectedIndex]);
source
share