How to search word in a richtextbox?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a quick easy way to search a text for words in richtextbox?

I would like to make it work as a word document, as the having Find, Find
Next by right click the richtextbox. THe words will be highlighted and the
focus wil move to that part of ricktextbox after each search.

Any suggestions?
Thanks a lot

Chris
 
Hi Chris
you have the text property of the RichTextBox that is a string . You can
use the IndexOf function of that string to see if the sring you are looking
for exit in that text or not.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top