コード例 #1
0
        private void onTabControlSelected(object sender, TabControlEventArgs e)
        {
            frmCP           = new formCP();
            frmCP.MdiParent = this;
            tabControl1.TabPages[e.TabPageIndex].Controls.Add(frmCP);

            frmCP.Show();
        }
コード例 #2
0
        private void casoN1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCP           = new formCP();
            frmCP.MdiParent = this;
            tabControl1.Controls.Add(frmCP);

            frmCP.Show();
        }