all groups > dotnet windows forms designtime > october 2004 >
You're in the

dotnet windows forms designtime

group:

ParentControlDesigner CanParent method


ParentControlDesigner CanParent method joeycalisay
10/22/2004 11:09:15 AM
dotnet windows forms designtime:
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?

Re: ParentControlDesigner CanParent method jmghost NO[at]SPAM msn.com
10/22/2004 1:25:28 PM
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


[quoted text, click to view]
AddThis Social Bookmark Button