Search RichTextBox
(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
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

ssswamiiRank #4,500 · 340 reputationPosted May 10, 2004, 11:55 AM EDT
pretzel5 reputationPosted May 10, 2004, 4:14 PM EDT
ssswamiiRank #4,500 · 340 reputationPosted May 11, 2004, 7:16 AM EDT