Hi there
simple Question: How do i add a DockManager to a Form with Code?!
regards
Cloud
Hello Cloud,
One possible approach could be:
UltraDockManager udm = new UltraDockManager();
udm.HostControl = this;
udm.DockControls(new Control[] {ultraExplorerBar1}, DockedLocation.DockedLeft, ChildPaneStyle.HorizontalSplit);
Let me know if you have any questions.
Regards
ok thank you.
and how ist it possible to pull my control at the place i want?
i´m using this code:
UltraDockManager
dockManager = new UltraDockManager();
dockManager.ShowCloseButton =
false;
dockManager.ShowPinButton =
dockManager.CaptionStyle =
CaptionStyle.Office2007;
dockManager.WindowStyle =
WindowStyle.Office2007;
dockManager.DockAreas.Add(
new DockAreaPane(DockedLocation.DockedLeft));
dockManager.ControlPanes.Add(
new DockableControlPane((UltraExplorerBar)oExplorerBar));
what do i need now?
Hi,
If you dock it at the bottom, then we could manage only the height. If you dock it at the left side, then we could manage the width.
So let`s say that we dock it is the bottom, then you should add :
dockManager.ControlPanes[ultraExplorerBar1].DockAreaPane.Size = new Size(1, 200); this line in our previous sample.
Georgi
thank you that worked very well.
just one thing: if i dock it at the bottom the explorerbar get´s very big. nearly the half of the height of the form. How can i fix the height / width after Docking?
I made small sample for you. Could you please take a look at the attached sample and let me know if you have any questions.