Exemple #1
0
        public void ShowFormA()
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.Name == "frm_WMS_STK_OUT_Receive")
                {
                    f.Visible = true;
                    f.Activate();
                    f.WindowState = FormWindowState.Maximized;
                    f.Focus();
                    return;
                }
            }

            frm_WMS_STK_OUT_Receive frmP_WMS_STK_OUT_Receive = new frm_WMS_STK_OUT_Receive();

            frmP_WMS_STK_OUT_Receive.MdiParent = this.MdiParent;

            //MdiParent
            frmP_WMS_STK_OUT_Receive.Show();
            frmP_WMS_STK_OUT_Receive.Focus();
        }
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.Name == "frm_WMS_STK_OUT_Receive")
                {
                    f.Visible = true;
                    f.Activate();
                    f.WindowState = FormWindowState.Maximized;
                    f.Focus();
                    return;
                }
            }

            frm_WMS_STK_OUT_Receive frmP_WMS_STK_OUT_Receive = new frm_WMS_STK_OUT_Receive();

            frmP_WMS_STK_OUT_Receive.MdiParent = this.MdiParent;

            ////MdiParent
            frmP_WMS_STK_OUT_Receive.Show();
            frmP_WMS_STK_OUT_Receive.Focus();
        }