pretzel

pretzel

  • NA
  • 3
  • 0

Search RichTextBox

May 10 2004 1:42 AM
(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)