private void newNoteToolStripMenuItem_Click(object sender, EventArgs e) { Form3 newChild = new Form3(); //The parent is form 2. newChild.MdiParent = this; newChild.Text = ("New Note"); newChild.Show(); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { Form3 newNote = new Form3(); OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { StreamReader sr = new StreamReader(ofd.FileName); newNote.NotepadText = sr.ReadToEnd(); newNote.Show(); sr.Close(); } }