Event SelectionChanged
Occurs when the SelectedIndex property or the SelectedIndices collection has changed.
public event EventHandler? SelectionChanged
Returns
- EventHandler
- Occurs when the property or the collection has changed.
Remarks
You can create an event handler for this event to determine when the selected index in the ListBox has been changed. This can be useful when you need to display information in other controls based on the current selection in the ListBox.
You can use the event handler for this event to load the information in the other controls. If the SelectionMode property is set to Multiple, any change to the SelectedIndices collection, including removing an item from the selection, will raise this event.