private void btnPhongBan_Click(object sender, EventArgs e) { Quanlyphongban frmpb = new Quanlyphongban(); frmpb.Show(); this.Hide(); }
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(); }