private void MDIParent1_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; this.Text = UserPublicClass.CompanyValue; toolStripStatusLabel.Text = UserPublicClass.CompanyValue + "--欢迎你:" + UserPublicClass.NameValue; MainForm childForm = new MainForm(); childForm.MdiParent = this; childForm.Text = "设计图 " ; childForm.Show(); }
private void 打开主窗口ToolStripMenuItem_Click(object sender, EventArgs e) { MainForm childForm = new MainForm(); childForm.MdiParent = this; childForm.Text = "设计图 "; childForm.Show(); }