Exemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            FrmStudentstrut f = new FrmStudentstrut();

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

            f.Show();

            this.splitContainer3.Panel1.Controls.Clear();
            this.splitContainer3.Panel1.Controls.Add(f);
            string[] files = System.IO.Directory.GetFiles(@"FrmStudentstrut.cs");
            textBox1.Text = files.ToString();
        }
Exemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            FrmStudentstrut f = new FrmStudentstrut();

            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(@"03.FrmStudentstrut.cs", Encoding.Default);

            this.textBox1.Text = sr.ReadToEnd();
            sr.Close();
        }