Hello Dess,
thanks for your example. In this case it will work. I have modify your example with the settings of my RadDock:
public
RadForm1()
{
InitializeComponent();
this
.radDock1.AutoDetectMdiChildren =
true
;
this
.radDock1.MdiChildrenDockType = DockType.Document;
this
.radDock1.DocumentManager.BoldActiveDocument =
true
;
this
.radDock1.SingleScreen =
true
;
this
.radDock1.DocumentTabsVisible =
false
;
Form f =
new
LogForm();
//Form f = new LogFormWinForms();
hostWindow =
this
.radDock1.DockControl(f, DockPosition.Right);
hostWindow.DockState = DockState.Floating;
hostWindow.CloseAction = DockWindowCloseAction.Hide;
hostWindow.AllowedDockState = AllowedDockState.All ^ AllowedDockState.TabbedDocument;
}
If i set AutoDetectMdiChildren to false it works, if i set it to true it does not work (in both cases: your LogForm as RadForm and my LogFormWinForms as WinForm).
I have the modify the method to display the MDI children as a document:
Form f =
new
MDIChildForm();
HostWindow hostWindow = radDockBase.DockControl(f, DockPosition.Bottom);
hostWindow.DockState = DockState.TabbedDocument;
//f.MdiParent = this; <-- I used this code before
//f.Show();
This workaround helps me to avoide AutoDetectMdiChildren.
Thanks for your help
Christoph