Example #1
0
        private void 销售管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EmployeeManageForm emf = new EmployeeManageForm();

            emf.Show();
            //this.dataGridView1.Visible = true;
            //this.Hide();
        }
Example #2
0
        private void 销售管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //窗体切换
            EmployeeManageForm w1 = new EmployeeManageForm(); //实例化对象

            w1.TopLevel = false;                              //将此控件设置为非顶级
            this.panel1.Controls.Add(w1);                     //添加w1的控件
            w1.FormBorderStyle = FormBorderStyle.None;        //将边框设置为无
            w1.Show();                                        //显示w4窗体
            w1.BringToFront();                                //将w4置于顶层
        }