3
Reply

Search RichTextBox

pretzel

pretzel

May 10 2004 1:42 AM
2.7k
(new to c#) I'm trying to use the Find method to search text in a richtextbox... eg. myTextBox.Find("Text",0,RichTextBoxFinds.WholeWord); The problem is I want to combine RichTextBoxFinds options - WholeWord (value = 2) - MatchCase (value = 4) - Reverse (value = 16) The microsoft web site says: "You can combine one or more values from this enumeration to specify more than one search option when calling the Find method." Can anyone show me and example in code? Do you add the numbers or list the numbers? Thanks, Ron

Answers (3)
Next Recommended Forum