private void frmAccountDetails_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         if (e.KeyCode == Keys.Escape)
         {
             this.Close();
         }
         if (e.KeyCode == Keys.F1)
         {
             frmAccountGroup frm = new frmAccountGroup();
             frm.ShowDialog();
         }
         if (e.KeyCode == Keys.N && e.Alt)
         {
             btnNew_Click(sender, e);
         }
         if (e.KeyCode == Keys.S && e.Alt)
         {
             btnSave_Click(sender, e);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void btnAddAccountGroup_Click(object sender, EventArgs e)
 {
     try
     {
         frmAccountGroup frm = new frmAccountGroup();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void ribbonPanel1_Click(object sender, EventArgs e)
 {
     try
     {
         frmAccountGroup frmc = new frmAccountGroup();
         frmc.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }