Found that if I get the IDesignerHost service, I could check its Loading
property to see if the designer was loading. If it is not, then I know the
control was just added. If it is, then I know the designer is just loading,
so no need to do anything.
> Hi,
>
[quoted text clipped - 19 lines]
>
> Any solutions?
Joey Callisay - 12 Oct 2004 02:32 GMT
I can sense that you are creating a custom container control, aren't you?
If you are, then there is a CanParent method to validate the controls added
to your container control...
here is another good link on designers:
http://www.divil.co.uk/net/articles/designers/collectioncontrols.asp
> Found that if I get the IDesignerHost service, I could check its Loading
> property to see if the designer was loading. If it is not, then I know the
[quoted text clipped - 27 lines]
> >
> > Any solutions?
Marina - 15 Oct 2004 15:59 GMT
No, I actually wasn't. I don't think CanParent has anything to do with what
information I needed. The Loading property does the trick though.
> I can sense that you are creating a custom container control, aren't you?
> If you are, then there is a CanParent method to validate the controls added
[quoted text clipped - 42 lines]
> > >
> > > Any solutions?