Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (ParentPanel.Controls.Count > 0)
            {
                ParentPanel.Controls.RemoveAt(0);
            }
            support myForm = new support();

            myForm.TopLevel        = false;
            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.Dock            = DockStyle.Fill;
            ParentPanel.Controls.Add(myForm);
            ParentPanel.Tag = myForm;
            myForm.Show();
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.MaximizeBox = false;
            if (ParentPanel.Controls.Count > 0)
            {
                ParentPanel.Controls.RemoveAt(0);
            }
            support myForm = new support();

            myForm.TopLevel        = false;
            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.Dock            = DockStyle.Fill;
            ParentPanel.Controls.Add(myForm);
            ParentPanel.Tag = myForm;
            myForm.Show();
        }