c# - Is there an event handler called after ComboBox.Items.Clear()? -
i'm trying fire event when combo box has items cleared , cannot seem find appropriate handler.
the code simply:
combobox.items.clear() // fire event here.
i have tried selectedindexchanged
, selectedvaluechanged
no luck.
is there event handler called after clear()
?
unfortunately, there no event can catch can see in the source.
you handle cb_resetcontent
win32 message:
protected override void wndproc(ref message m) { if (m.msg == 0x014b /* cb_resetcontent */) { // } base.wndproc(ref m); }
Comments
Post a Comment