toolStripContainer在父窗體停靠以後會遮蔽mdi的子窗體
在toolStripContainer.ContentPanel上面放panel,然後pannel設置在父窗體中停靠
在show窗體的時候代碼如下
frmShowPic fsp = new frmShowPic(); fsp.MdiParent = this; fsp.Parent = panel1; fsp.Show();
同時這個方法也實用於使mdi子窗體不會被mdi容器中的控件遮蔽
toolStripContainer在父窗體停靠以後會遮蔽mdi的子窗體
在toolStripContainer.ContentPanel上面放panel,然後pannel設置在父窗體中停靠
在show窗體的時候代碼如下
frmShowPic fsp = new frmShowPic(); fsp.MdiParent = this; fsp.Parent = panel1; fsp.Show();
同時這個方法也實用於使mdi子窗體不會被mdi容器中的控件遮蔽