private void CompanySetting_Click(object sender, EventArgs e)
        {
            CloseAllOpenedChildForm();
            frmCompanySetting objform = new frmCompanySetting(rollFKey);

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