Exemplo n.º 1
0
        private void 库存信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            KuCun kc = new KuCun();

            kc.Show();
            //this.dataGridView1.Visible = true;
            //this.Hide();
        }
Exemplo n.º 2
0
        private void 库存信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //窗体切换
            KuCun w2 = new KuCun();                    //实例化对象

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