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

dotnet windows forms designtime

group:

Extend Controls based on Parent


Extend Controls based on Parent David Martin
6/12/2004 10:33:40 PM
dotnet windows forms designtime:
I have created a custom control and I wish to extend the properties of any
control that is placed within my custom control I have also created an
IExtenderProvider class that works except that I do not know how to restrict
CanExtend based on extendee.parent since the parent is null at that point.

Any idea?

Thanks,
David Martin

Re: Extend Controls based on Parent schneider
6/15/2004 12:07:38 AM
Only way I can think of:

Flag the null parents, then retry all the controls.parent when they are
added.

Or possibly there is some way to SuspendLayout, not sure how, anyone else?

Schneider

[quoted text, click to view]

Re: Extend Controls based on Parent WALDO NO[at]SPAM WALDOLand.com
7/2/2004 7:05:15 AM
You could try:
CType(extendee, Component).Site.Container Is Me

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