There is a listbox. At a certain point, a piece of code is executed that increments SelectedIndex by one. Naturally, this possibility is first checked by comparing with Items.Count . And then the fun begins. An exception is thrown.
The specified argument is out of range.
Begin to understand. I look in the debugging control values
I go further and try to look at the collection set and see this
Explain to me how it is? Count == 2, but there is no access to the item with index 1. Who faced?

