Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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);
 }