Пример #1
0
        private void btnCommercial_Click(object sender, EventArgs e)
        {
            //lancer form Commercial
            Form_Commercial f2 = new Form_Commercial();

            f2.Show();
        }
Пример #2
0
        private void commercialToolStripMenuItem2BBBB_Click(object sender, EventArgs e)
        {
            Form_Commercial f3 = new Form_Commercial();

            f3.TopLevel = false;
            this.panel1.Controls.Add(f3);
            f3.FormBorderStyle = FormBorderStyle.None;

            f3.Top  = 0;
            f3.Left = 0;
            f3.Size = f3.ClientSize;
            f3.Dock = DockStyle.Fill;
            f3.BringToFront();
            f3.Show();
            this.Text = "Commercial";
        }