public ConsoleParentForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // consoleForms = new ArrayList(); //show the main child form mainchild = new ConsoleForm(); mainchild.MdiParent = this; mainchild.WindowState = FormWindowState.Maximized; mainchild.ControlBox = false; }
private void mnuGridConnect_Click(object sender, EventArgs e) { //new grid connection ConsoleForm cf = new ConsoleForm(); cf.MdiParent = this; cf.Show(); cf.Closed += new EventHandler(ConsoleChildForm_Closed); consoleForms.Add(cf); }