Overriding a Combobox

  • Thread starter Thread starter Alex Glass
  • Start date Start date
A

Alex Glass

I have overriden the combobox class in my application. Is there a way I can
write code that triggers when the Combobox.Items collection is changed (I.E.
myCombo.Items.Add or myCombo.Items.Remove) ?? I have tried using breakpoints
with AddItemsCore and AddItemCore override functions but could not determine
what triggers these functions.


Thanks,
Alex
 
Alex said:
I have overriden the combobox class in my application. Is there a way I can
write code that triggers when the Combobox.Items collection is changed (I.E.
myCombo.Items.Add or myCombo.Items.Remove) ?? I have tried using breakpoints
with AddItemsCore and AddItemCore override functions but could not determine
what triggers these functions.


Thanks,
Alex

I'm at home now, and all my code is at work, but I recall you need to
bind the combobox NOT to a dataset, but rather an IList / IEditable. I
recall MS has examples on how to do this with a datagrid, but those on-
overrides for change events should work the same way.

HTH - Lee
 
Back
Top