Beispiel #1
0
        private void button12_Click(object sender, EventArgs e)
        {
            FrmNotePad f = new FrmNotePad();

            f.TopLevel        = false;
            f.Dock            = DockStyle.Fill;
            f.FormBorderStyle = FormBorderStyle.Sizable;

            f.Show();

            this.splitContainer3.Panel1.Controls.Clear();
            this.splitContainer3.Panel1.Controls.Add(f);
            StreamReader sr = new StreamReader(@"11.FrmNotePad.cs", Encoding.Default);

            this.textBox1.Text = sr.ReadToEnd();
            sr.Close();
        }
Beispiel #2
0
        private void FrmNotePadbutton_Click(object sender, EventArgs e)
        {
            try
            {
                FrmNotePad f = new FrmNotePad();
                f.TopLevel        = false;
                f.Dock            = DockStyle.Fill;
                f.FormBorderStyle = FormBorderStyle.Sizable;

                f.Show();

                this.FrmsplitContainer.Panel1.Controls.Clear();
                this.FrmsplitContainer.Panel1.Controls.Add(f);
                StreamReader sr = new StreamReader(@"13.FrmNotePad.cs", Encoding.Default);
                this.CodetextBox.Text = sr.ReadToEnd();
                sr.Close();
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #3
0
        private void 新增NToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmNotePad f = new FrmNotePad();

            f.Show();
        }