How to search word in a richtextbox?

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
 
M

Mohamoss

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top