Exemplo n.º 1
0
        private void 供商信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ChuKu ck = new ChuKu();

            ck.Show();
            //this.dataGridView1.Visible = true;
            //this.Hide();
        }
Exemplo n.º 2
0
        private void 供商信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //窗体切换
            ChuKu w1 = new ChuKu();                    //实例化对象

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