How to catch ComboBox.Items.Clear()

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.
 
S

shadow.demon

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top