Hello Rolf,
When you put NDockManager control on your form, the form becomes MDI form. That's why controls on the form diasppear.
If you want to put NChartControl and NChartCommandBarsManager controls you need to put them in NUIDocument.
Here is a sample code that shows how this can be achieved:
NUIDocument doc = new NUIDocument();
Panel panel = new Panel();
panel.Dock = DockStyle.Fill;
doc.Client = panel;
NChartControl nChartControl1 = new NChartControl();
nChartControl1.Size = new Size(500, 300);
nChartControl1.Location = new Point(10, 60);
panel.Controls.Add(nChartControl1);
NChartCommandBarsManager chartCommandsManager = new NChartCommandBarsManager();
chartCommandsManager.ChartControl = nChartControl1;
chartCommandsManager.ParentControl = panel;
nDockManager1.DocumentStyle.DocumentViewStyle = DocumentViewStyle.SingleDocument;
nDockManager1.DocumentManager.AddDocument(doc);
Regarding the second question the docking panels have different size setups depending of their state.
If you want the state of your panels to be AutoHide you need to setup PrefferedState property to AutoHide.
In design view the panels will remain docked, but in runtime they will be in AutoHide state.
To setup the size of the panel when the state is AutoHide you need to setup TabInfo.AutoHIdeSize property.
Analogically if you want to setup the size when the panel is in Docked state you have to setup SizeInfo.PrefferedSize property.
I hope this post will help you to setup your docking panels correctly.
Regards,
Angel Chorbadzhiev.