ControlDesigner (Please help)

hi,
My usercontrols have a designer derived form ControlDesigner class. When i add this usercontrol onto a windows form , it works fine. But when i add this usercontrol onto the document which has its own rootdesigner(i implemented), the control designer does not work.

DocumentDesigner class has a method CanBeParented(IDesigner parentdesigner) to indicate whether the control managed by the parameter designer can be a child of the control managed by document designer.

i attempted this method, the result did not changed.

i tried to debug by using messagebox in initialize() and constructor of the designer but none of them returns a message.

i think, it means my designer does not initialized by my rootdesigner.

i examined the ShapeLibrary sample, and i saw that they implements designers as same way as i do. but their designers works . i don't know what is my mistake?

i will be gratefull,if anyone can reply me.
thanks

[948 byte] By [codefund.com] at [2007-12-16]
# 1
Unfortunately, it's pretty hard to tell what's going on from your description above. One thing to note is that you can use the debugger on your designer. Just attach a second instance of Visual Studio.NET to the one running your designer (See the Debug >> Processes... menu item).

When you do that you can also see if any exceptions are being thrown by going to Debug >> Exceptions >> Common Language Runtime Exceptions >> When Exception is Thrown / Break

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...