博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

c# Mid 子窗体 盖住 控件

Posted on 2008-06-03 15:17  夏虫  阅读(547)  评论(0编辑  收藏  举报
StationForm f = new StationForm();
            f.TopLevel = false;
            f.Parent = panel1;
            f.Show();
            f.BringToFront();

panel1 is a panel which size is just as the size of the client area of mainform,
so f will not be covered by these controls of mainform