Doesn't look like you can. I would inherit a new class from
System.Collections.ObjectModel.Collection<T> instead. That one has proteced
methods that you can override to handle insert, remove and set.
/claes
"Steve Barnett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a user control that includes a StringCollection. I provide my users
>with a property that retrieves a reference to the string collection so they
>can add and remove items from it, just as you would do if this were, for
>example, a listbox.
>
> What I can't see is any way for my user control to detect that the
> StringCollection was modified. Is there any way (short of overriding all
> the methods) that I can be informed if the collection is modified so I can
> redraw my control?
>
> Thanks
> Steve
>
|