this
Hi David,
If you need to switch between different layouts with different controls,You should ensure that there present all the controls in dockinglayout before loading the Dockstate using the LoadDockState method.
This should be the sequence.
1.EnableDocking for controls which are present in the docklayout which is going to be loaded.
2.Load the layout using the LoadDockState method.
You could also save the information about the controls in the same dockstate stream.So it will be easy to create controls before loading the dock state.Please refer
knowledge base article for more information.
Please let me know,if you need more information.
Regards,
Joy