public static void ShowException(string strOperation, string strErrorMessage) { frm_ErrorDlg ErrDlg = new frm_ErrorDlg(strOperation, strErrorMessage); ErrDlg.ShowDialog(); ErrDlg.Dispose(); }