コード例 #1
0
        private void Loanbutton_Click(object sender, EventArgs e)
        {
            try {
                FrmLoan f = new FrmLoan();

                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(@"01.FrmLoan.cs", Encoding.Default);
                this.CodetextBox.Text = sr.ReadToEnd();
                sr.Close();
                //FrmLoan f2 = new FrmLoan();

                //string s =
                //textBox1.Text = s.;



                //this.splitContainer3.Panel2.Controls.Clear();
                //this.splitContainer3.Panel2.Controls.Add(f2.Text);
            }
            catch (Exception ex)
            {
            }
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmLoan f = new FrmLoan();

            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;
            //FrmLoan f2 = new FrmLoan();

            //string s =
            //textBox1.Text = s.;



            //this.splitContainer3.Panel2.Controls.Clear();
            //this.splitContainer3.Panel2.Controls.Add(f2.Text);
        }