private void btn_Product_Click(object sender, EventArgs e) { Frm_Product_Details obj = new Frm_Product_Details(); obj.MdiParent = this; // obj.StartPosition = FormStartPosition.CenterParent; obj.ControlBox = false; obj.Show(); }
private void btn_Manage_Product_Click(object sender, EventArgs e) { Frm_Product_Details obj = new Frm_Product_Details(); obj.WindowState = FormWindowState.Maximized; obj.MdiParent = this; obj.StartPosition = FormStartPosition.CenterParent; obj.Show(); pnl_Product_Sub_Panel.Hide(); }