Does anyone know of any event or sequence of events that can handle when a user clicks an item in a ComboBox? Currently, the only events that I see are fires from ComboBox in WinForms are SelectedIndexChanged or SelectedValueChanged. The problem with these events is that they also run in many other scenarios, for example, when the user presses the up or down arrow (even if the ComboBox is not open).
ComboBox.SelectedIndexChanged += (o, e) => Console.WriteLine("ComboBox_SelectedIndexChanged");
ComboBox.SelectedValueChanged += (o, e) => Console.WriteLine("ComboBox_SelectedValueChanged");
Any thoughts?
source
share