Exemplo n.º 1
0
 public MainForm(string filename)
 {
     InitializeComponent();
     DocumentForm childForm = new DocumentForm(filename);
     childForm.MdiParent = this;
     childForm.WindowState = FormWindowState.Maximized;
     childForm.Show();
 }
Exemplo n.º 2
0
 private void ShowNewForm(object sender, EventArgs e)
 {
     DocumentForm childForm = new DocumentForm();
     childForm.MdiParent = this;
     childForm.WindowState = FormWindowState.Maximized;
     childForm.Text = "Window " + childFormNumber++;
     childForm.Show();
 }