How to catch ComboBox.Items.Clear()

  • Thread starter Thread starter mdb
  • Start date Start date
M

mdb

I currently catch the SelectedIndexChanged event on a ComboBox to perform
some processing when the user changes the selected item. But I also want to
know when the user clears the list, but I can't seem to catch any events that
would indicate when this is happening. I've tried SelectedIndexChanged,
SelectedValueChanged, TextChanged.

What can I do to know when the user calls Clear() on the ComboBox items list?
This is .NET v1.1.
 
You might be able to catch the repaint event and use that? Or just
handle any events before the Clear() is called in your code.

-Mark
 
Back
Top