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