Esempio n. 1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            FrmGuess f = new FrmGuess();

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

            this.textBox1.Text = sr.ReadToEnd();
            sr.Close();
        }
Esempio n. 2
0
        private void FrmGuessbutton_Click(object sender, EventArgs e)
        {
            try
            {
                FrmGuess f = new FrmGuess();
                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.FrmGuess.cs", Encoding.Default);
                this.CodetextBox.Text = sr.ReadToEnd();
                sr.Close();
            }
            catch (Exception ex)
            {
            }
        }