コード例 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmPOS收銀機 f = new FrmPOS收銀機();

            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;
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmPOS收銀機 f = new FrmPOS收銀機();

            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(@"02.FrmPOS 收銀機.cs", Encoding.Default);

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