private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e) { if (FrmSelectReportFormat == null) { FrmSelectReportFormat = new frmSelectReportFormat(); FrmSelectReportFormat.MdiParent = this; FrmSelectReportFormat.ClientSize = new System.Drawing.Size(2000, 800); this.WindowState = FormWindowState.Maximized; FrmSelectReportFormat.FormBorderStyle = FormBorderStyle.None; FrmSelectReportFormat.ControlBox = false; FrmSelectReportFormat.MaximizeBox = false; FrmSelectReportFormat.MinimizeBox = false; FrmSelectReportFormat.ShowIcon = false; FrmSelectReportFormat.FormClosed += FrmSelectReportFormat_FormClosed; FrmSelectReportFormat.Dock = DockStyle.Fill; FrmSelectReportFormat.Show(); } else { FrmSelectReportFormat.Activate(); } }
private void FrmSelectReportFormat_FormClosed(object sender, FormClosedEventArgs e) { FrmSelectReportFormat = null; }