toolStripContainer在mdi窗体中遮蔽mdi子窗体的解决办法

toolStripContainer在父窗体停靠以后会遮蔽mdi的子窗体

在toolStripContainer.ContentPanel上面放panel,然后pannel设置在父窗体中停靠

在show窗体的时候代码如下

 

            frmShowPic fsp = new frmShowPic();
            fsp.MdiParent = this;
            fsp.Parent = panel1;           
            fsp.Show();
 
同时这个方法也实用于使mdi子窗体不会被mdi容器中的控件遮蔽
posted @ 2008-07-28 13:43  Sean.Z  阅读(288)  评论(0)    收藏  举报