Exemplo n.º 1
0
 private void timer_Tick(object sender, EventArgs e)
 {
     if (EnteredText != "\r\n" && rtbEnteredText.GetNextSpellingErrorPosition(rtbEnteredText.Document.ContentStart, LogicalDirection.Forward) != null)
     {
         lblTextErrorIndicator.Visible   = true;
         lblTextErrorIndicator.ForeColor = Color.Red;
         lblTextErrorIndicator.Text      = "X - There are spelling errors.";
     }
     else
     {
         lblTextErrorIndicator.Visible   = true;
         lblTextErrorIndicator.ForeColor = Color.Green;
         lblTextErrorIndicator.Text      = "✔ - No spelling errors.";
     }
 }