Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form15 f = new Form15();

            f.TopLevel        = false;
            f.FormBorderStyle = FormBorderStyle.None;
            this.panel1.Controls.Clear();
            this.panel1.Controls.Add(f);
            //panel控件内显示窗体
            f.Show();
        }
Exemple #2
0
        private void Form14_Load(object sender, EventArgs e)
        {
            timer1.Start();
            this.Resize += new EventHandler(FormClass.FormResize);
            FormClass.setValues(this.Width, this.Height, this);
            FormClass.setTag(this);
            FormClass.FormResize(new object(), new EventArgs());

            Form15 f = new Form15();

            f.TopLevel        = false;
            f.FormBorderStyle = FormBorderStyle.None;
            this.panel1.Controls.Clear();
            this.panel1.Controls.Add(f);
            //panel控件内显示窗体
            f.Show();
        }