private void button9_Click(object sender, EventArgs e) { FrmGame f = new FrmGame(); f.TopLevel = false; f.Dock = DockStyle.Fill; f.FormBorderStyle = FormBorderStyle.Sizable; f.Show(); this.splitContainer3.Panel1.Controls.Clear(); this.splitContainer3.Panel1.Controls.Add(f); this.textBox1.Text = f.Text; }
private void button9_Click(object sender, EventArgs e) { FrmGame f = new FrmGame(); 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(@"08.FrmGame.cs", Encoding.Default); this.textBox1.Text = sr.ReadToEnd(); sr.Close(); }