I've searched through previous posts about implementing this method to
customize the child controls being dragged into a custom container control
and I do have some questions.
The CanParent method is only executed if the control dragged into the
container control is from the form and not from toolbox (I think this is a
fact). I don't know why the behavior is this.
Using Reflector, I saw that the IOleDragClient.IsDropOk(IComponent
component) method of the ParentControlDesigner calls the CanParent and the
CanBeParentTo methods of the involved controls (parent and child). Who is
calling this method and when was it called?
Jer_m - 22 Oct 2004 21:25 GMT
Hi Joey,
I came across this a while ago,
Subject: Re: Preventing controls from being added to container
in
microsoft.public.dotnet.framework.windowsforms
b.t.w Thanks Shawn.
kind regards,
Jerron
> I've searched through previous posts about implementing this method to
> customize the child controls being dragged into a custom container control
[quoted text clipped - 8 lines]
> CanBeParentTo methods of the involved controls (parent and child). Who is
> calling this method and when was it called?