private void SalesManagement_Click(object sender, EventArgs e) { try { salesMenagementDlg.Visible = true; salesMenagementDlg.Focus(); } catch (System.Exception ex) { Trace.WriteLine(ex.ToString()); salesMenagementDlg = new SalesMenagementDlg(); salesMenagementDlg.Show(); } }