It depends what you mean by “associate a DockLayoutManager to a custom control”.
If you want the region of your form that is used as the DockHost to be a user control which is present on the form, then you simply need to set the DockHost = myControl.
If you want the custom control to be the “owner” of the DockLayoutManager (DLM), and have the DLM to be apply to any form unto which the custom control is added, it should be feasible, but through code only.
In this case, the custom control would have to detect when it is added to a form or moved to another form (via the ParentChanged event or something alike), call FindForm() to get the form in question, and then, you would be able to initialize the DLM, and assign the form to the DockHost property.
Imported from legacy forums. Posted by André (had 436 views)