コード例 #1
0
        private void panel1_Click(object sender, EventArgs e)
        {
            //controls
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(HoldAccounts))
                {
                    form.Activate();
                    return;
                }
            }

            HoldAccounts frm = new HoldAccounts();

            frm.Show();
            frm.MdiParent = this;
        }
コード例 #2
0
        private void button21_Click(object sender, EventArgs e)
        {
            //Hide Panel
            panelMembership.Visible = false;

            //controls
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(HoldAccounts))
                {
                    form.Activate();
                    return;
                }
            }

            HoldAccounts frm = new HoldAccounts();

            frm.Show();
            frm.MdiParent = this;
        }