c# Mid 子窗体 盖住 控件

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

原文地址:https://www.cnblogs.com/xiachong/p/1212841.html