dockpanelsuite icon indicating copy to clipboard operation
dockpanelsuite copied to clipboard

Hello, I met the error that I don't know how to address.

Open steven1536796418 opened this issue 5 years ago • 3 comments
trafficstars

I met the error that " Invalid parent form. When using DockingMdi or SystemMdi document style, the DockPanel control must be the child control of the main MDI container form.", however, I have set the mainform "ismdicontainer" = True, and the panel "documentstyle" = DockingMdi.

What to be noted is that, when I don't move the childform( the childform is hidden), this error won't appear, but when I move the childform from the hidden state, this error will appear. May you help to find what is happening with this error? Thanks.

steven1536796418 avatar Mar 14 '20 06:03 steven1536796418

I hope I can explain further, but "DockPanel control must be the child control of the main MDI container form" answers you. Learn to use the Document Outline window of Visual Studio, because it tells you the relationship among the controls,

http://geekswithblogs.net/pavelka/archive/2006/11/20/VisualStudioAndTheDocumentOutlineWindow.aspx

lextm avatar Mar 14 '20 13:03 lextm

I hope I can explain further, but "DockPanel control must be the child control of the main MDI container form" answers you. Learn to use the Document Outline window of Visual Studio, because it tells you the relationship among the controls,

http://geekswithblogs.net/pavelka/archive/2006/11/20/VisualStudioAndTheDocumentOutlineWindow.aspx

Thank for your reply, I have use the Document Outline of the vs, and the panel is actually the child control of the main MDI, maybe some other factors cause this error? I use the dockpanel by adding the dll, inculding the Docking and ThemeVS2015 .dll, however, I can't change the theme of panel in the beginning, and I change it with the code inside. Sorry, I am new to this, but any thing will help. Thanks.

steven1536796418 avatar Mar 15 '20 02:03 steven1536796418

In vNext release we are going to change the default docking style away from MDI. That should resolve such issues, as most people never care about MDI.

lextm avatar Mar 27 '20 02:03 lextm