Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            manGoods cus = new manGoods();

            cus.ShowDialog();
            this.Close();
        }
Exemplo n.º 2
0
        public Form2()
        {
            InitializeComponent();
            TabPage     page = new TabPage();
            manCustomer form = new manCustomer();

            form.TopLevel        = false;
            form.Visible         = true;
            form.Dock            = DockStyle.Fill;
            form.FormBorderStyle = FormBorderStyle.None;

            page.Controls.Add(form);
            this.tabControl1.TabPages.Add(page);
            /////////////////
            manGoods formGood = new manGoods();

            formGood.TopLevel        = false;
            formGood.Visible         = true;
            formGood.Dock            = DockStyle.Fill;
            formGood.FormBorderStyle = FormBorderStyle.None;

            //page.Controls.Add(formGood);
        }