private void cp_OK_MouseClick(object sender, MouseEventArgs e) { string code = tb_code.Text; var result = Data.GetUser(code); if (result == "") { tb_code.PasswordChar = (char)0; tb_code.Text = Resx.codeErrorPin; tb_code.ForeColor = _colorEntryValidationInvalidFont; } else { FrameworkUtils.ShowWaitingCursor(); _log.Debug("Before new FormReporting()"); FormReporting reporting = new FormReporting(); _log.Debug("After new FormReporting()"); _log.Debug("Before reporting.Show()"); reporting.Show(); _log.Debug("After reporting.Show()"); this.Hide(); FrameworkUtils.HideWaitingCursor(); } }