异常:Invalid parent form. When using DockingMdi or SystemMdi document style......

问题:

使用dockpanel多标签的时候出现下面的异常:

Invalid parent form. When using DockingMdi or SystemMdi document style, the DockPanel control must be the child control of the main MDI container form.

解决方法:

在添加dockpanel控件窗体中,把设置主窗体 IsMdiContainer=true。 

posted @ 2009-12-22 20:15  Jerome_wu  阅读(3529)  评论(0编辑  收藏  举报