Ejemplo n.º 1
0
        private void FrmAdmin_Load(object sender, EventArgs e)
        {
            FrmAdminUser fUser = new FrmAdminUser();

            fUser.TopLevel = false;
            MainPanel.Controls.Clear();
            MainPanel.Controls.Add(fUser);
            fUser.Show();
            //按钮颜色设置
            tsbtnUser.BackColor = SystemColors.GradientInactiveCaption;
        }
Ejemplo n.º 2
0
        private void tsbtnUser_Click(object sender, EventArgs e)
        {
            //按钮颜色设置
            tsbtnUser.BackColor        = SystemColors.GradientInactiveCaption;
            tsbtnCorMes.BackColor      = SystemColors.Control;
            tsbtnCorType.BackColor     = SystemColors.Control;
            toolStripButton1.BackColor = SystemColors.Control;

            FrmAdminUser fUser = new FrmAdminUser();

            fUser.TopLevel = false;
            MainPanel.Controls.Clear();
            MainPanel.Controls.Add(fUser);
            fUser.Show();
            //设置窗体大小
            Size newSize = new Size(750, 700);

            this.MaximumSize = this.MinimumSize = newSize;
            this.Size        = newSize;
        }