private void onTabControlSelected(object sender, TabControlEventArgs e)
        {
            frmCP           = new formCP();
            frmCP.MdiParent = this;
            tabControl1.TabPages[e.TabPageIndex].Controls.Add(frmCP);

            frmCP.Show();
        }
        private void casoN1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCP           = new formCP();
            frmCP.MdiParent = this;
            tabControl1.Controls.Add(frmCP);

            frmCP.Show();
        }