I assume that this is because your list box begins life with no items in it (so its SelectedIndex property is -1). As soon as it's populated, its SelectedIndex property changes to 0 (to select the first item in the now populated list box) and then SelectedIndexChanged event is now fired.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more