private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            CloseAllOpenedChildForm();
            frmSupplier objform = new frmSupplier(rollFKey, cId);

            objform.MdiParent = this;
            objform.Show();
            objform.WindowState = FormWindowState.Minimized;
            objform.WindowState = FormWindowState.Maximized;
        }
 private void supplierMenu_Click(object sender, EventArgs e)
 {
     try
     {
         CloseAllOpenedChildForm();
         frmSupplier objform = new frmSupplier(rollFKey, cId);
         objform.MdiParent = this;
         objform.Show();
         objform.WindowState = FormWindowState.Minimized;
         objform.WindowState = FormWindowState.Maximized;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString(), "supplierMenu_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }