コード例 #1
0
        private void btnCross_Click(object sender, EventArgs e)
        {
            btnNew.PerformClick();
            this.Visible = false;
            ManagerDetails m = new ManagerDetails();

            m.Visible = true;
        }
コード例 #2
0
        private void pbManagers_click(object sender, EventArgs e)
        {
            pnlMain.Controls.Clear();
            ManagerDetails md = new ManagerDetails();

            md.TopLevel        = false;
            md.Dock            = DockStyle.Fill;
            md.FormBorderStyle = FormBorderStyle.None;
            pnlMain.Controls.Add(md);
            md.Show();
        }