示例#1
0
        private void btnPhongBan_Click(object sender, EventArgs e)
        {
            Quanlyphongban frmpb = new Quanlyphongban();

            frmpb.Show();
            this.Hide();
        }
示例#2
0
        private void pbToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Quanlyphongban frmpb = new Quanlyphongban();

            frmpb.TopLevel = false;
            pnlMain.Controls.Add(frmpb);
            frmpb.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmpb.Dock            = DockStyle.Fill;
            frmpb.Show();
        }