You need to notify the design time environment that you have remove each of
the components inside the custom collection. So you need to ...
ITypeDescriptorContext context = (you get this context....)
// For each child component removed
context.Container.Remove(childComponent as IComponent);
// Then after all removed
context.OnComponentChanged()
Phil Wright
Follow my startup microISV at...
http://componentfactory.blogspot.com
> Hello
>
[quoted text clipped - 19 lines]
>
> thanks for your help !
Thibaud Bouquely - 15 Jun 2005 22:28 GMT
thanks a lot for your help
I just find this article :
http://www.divil.co.uk/net/articles/designers/collectioncontrols.asp
where the author explain It necessary to use IComponentChangeService and
ComponentRemoved Event
your approch is different but i am not sure I understand
I already use ITypeDescriptorContext in Converter but the IDE give me an
instance of it, I never obtain it from something
(you get this context....) : How can I do this ? (with GetService method may
be on site of My component ???) and Where I must do this ? (in main
component in dispose method for example or in specific ComponentDesigner of
main component ?)
> You need to notify the design time environment that you have remove each of
> the components inside the custom collection. So you need to ...
[quoted text clipped - 34 lines]
> >
> > thanks for your help !