private void 商品出库ToolStripMenuItem_Click(object sender, EventArgs e) { OutWarehouse f5 = new OutWarehouse(); //窗体最大化 f5.WindowState = FormWindowState.Maximized; //去掉边框 f5.FormBorderStyle = FormBorderStyle.None; f5.MdiParent = this; //设置新窗体的Parent f5.Parent = panel1; f5.Show(); }
private void button1_Click(object sender, EventArgs e) { OutWarehouse outwarehouse = new OutWarehouse(); outwarehouse.ShowDialog(); }