Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
  JRSpell1.ClearAllSelections RichTextBox1.hWnd, Rtf_Control
  JRSpell1.SelectionMethod = Sel_BackColor
Case 1
  JRSpell1.ClearAllSelections RichTextBox1.hWnd, Rtf_Control
  JRSpell1.SelectionMethod = Sel_DoubleUnderline
End Select
JRSpell1.SpellCheckDocument RichTextBox1.hWnd, Rtf_Control
End Sub
Public Enum selectiontypesb
            Sel_BackColor=0
            Sel_DoubleUnderline=1
            Sel_TwigglyUnderline=2 'Only for TX-Control Ver.8.0 or higher
            Sel_ForeColor=3
            Sel_nothing = 10
End Enum
Ab Version V2.4 kann in Verbindung mit Sel_ForeColor über JRSpell1.RestoreForeColor die Farbe für den i.O geprüften Text vorgegeben werden.