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