Underscore acts as a separator C# RTF Box
I am working on a Winforms application and using Find on the RichTextBox control to find particular keywords to style. For some reason, despite specifying the WholeWord flag, the Find seems to treat a word with an underscore in it as 2 separate words (and styles the matching half). The function call is: richTextBox1.Find("Keyword", RichTextBoxFinds.MatchCase | RichTextBoxFinds.WholeWord); Why is this happening? Can I override it/fix it somehow? Eric Brown You can, although it's a bit hairy. You need to specify a custom word breaking procedure for your rich text box, and you want to override