(in Design-Mode) I want to have some controls (inherited from Panel); when added to a control of their own type; dock in a certain way and possibly add another control to that parent.
a.t.m. I can do that, using InitializeNewComponent in a ControlDesigner.
This works so far, but only when a user would drag the control from the Toolbox to a control-surface.
When the control is dragged from one control(container) to another, nothing seems to happen.
I thought that using InitializeExistingComponent would solve this.
In the information I've read, InitializeExistingComponent is performed when a control is dragged from one container to another.
I can not get this to work. There is no response to dragging whatsoever.
How can I get InitializeExistingComponent to do something?
Or is there a way to do this without InitializeExistingComponent, and still have the Designer be aware of the changes to the layout of the control?
a.t.m. I can do that, using InitializeNewComponent in a ControlDesigner.
This works so far, but only when a user would drag the control from the Toolbox to a control-surface.
When the control is dragged from one control(container) to another, nothing seems to happen.
I thought that using InitializeExistingComponent would solve this.
In the information I've read, InitializeExistingComponent is performed when a control is dragged from one container to another.
I can not get this to work. There is no response to dragging whatsoever.
How can I get InitializeExistingComponent to do something?
Or is there a way to do this without InitializeExistingComponent, and still have the Designer be aware of the changes to the layout of the control?