There are couple of posts mentioned the dockpane will fill the rest of the screen if setting the dockmanager layout style to FillContainer. I have done it but the dockpane does not fill the screen. Is there any othe settings that one needs to set?
Below is how I add the dockpane to the form:
GuiAreaPane = new DockAreaPane(DockedLocation.DockedLeft);
DockableControlPane ControlPane = new DockableControlPane();
ControlPane.Control = mycontrol;
GuiAreaPane.Panes.Add(ControlPane);
ControlPane.Activate();
The dock area pane will not fill the screen, just the remaining area of the Form not occupied by other dock areas. I have tried your code and everything works ok. Make sure you do not have SaveSettings set to True. When you's application loads, it may be loading the layout file from the last time the app was run and changing your setting on LayoutStyle back to Standard.