private void demo1ToolStripMenuItem_Click(object sender, EventArgs e) { try { CloseAllAciveForms(); frmSchoolSetting objfrmSchoolSetting = new frmSchoolSetting(); objfrmSchoolSetting.TopLevel = false; plSettingsMenu.Controls.Add(objfrmSchoolSetting); objfrmSchoolSetting.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; objfrmSchoolSetting.Dock = DockStyle.Fill; objfrmSchoolSetting.Show(); } catch { } }
private void schoolSettingToolStripMenuItem_Click(object sender, EventArgs e) { try { CloseAllAciveForms(); frmSchoolSetting objfrmSchoolSetting = new frmSchoolSetting(); objfrmSchoolSetting.TopLevel = false; plSettingsMenu.Controls.Add(objfrmSchoolSetting); objfrmSchoolSetting.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; objfrmSchoolSetting.Dock = DockStyle.Fill; //splitContainer2.Panel2.Controls.Add(objAddNewUser); //objAddNewUser.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //objAddNewUser.Dock = DockStyle.Fill; objfrmSchoolSetting.Show(); // this.schoolSettingToolStripMenuItem.ForeColor = Color.AliceBlue; this.schoolSettingToolStripMenuItem.BackColor = Color.FromArgb(48, 175, 242); } catch { } //frmSchoolSetting objfrmAssignSubject = new frmSchoolSetting(); //objfrmAssignSubject.MdiParent = this; //objfrmAssignSubject.Show(); }