[代码]--WinForm 窗体之间相互嵌套

public FrmScan()
{
            InitializeComponent();
            Form1 frm = new Form1();
            frm.Dock = DockStyle.Fill;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.TopLevel = false;
            this.Controls.Clear();
            this.Controls.Add(frm);
            frm.Show();
}

 

posted @ 2016-11-07 23:11  春江花月夜、  阅读(1211)  评论(0编辑  收藏  举报