Example #1
0
        private void 商品下架ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OffSelf f5 = new OffSelf();

            //窗体最大化
            f5.WindowState = FormWindowState.Maximized;
            //去掉边框
            f5.FormBorderStyle = FormBorderStyle.None;
            f5.MdiParent       = this;
            //设置新窗体的Parent
            f5.Parent = panel1;
            f5.Show();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            OffSelf offself = new OffSelf();

            offself.ShowDialog();
        }