Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Distinguish Text in an Edit Box

Status
Not open for further replies.

itc1

IS-IT--Management
Sep 18, 2003
65
US
I am trying to find a way to distinguish or highlight keywords in a section of text in an edit box. I locate for certain errors in a block of text such as double asteriks or double brackets. When it locates the double asteriks or bracktes, I need it to be distinguishable so I can readily find the error and correct. Sometimes the block of text are very large. Thanks in advance.....
 
You could explore using the RTF ActiveX control, which has complete coloring/formatting control,

or just use .SelStart and .SelEnd to highlight the first occurance found.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Thanks Bill, I will try the .SelStart and .SelEnd commands to find the first occurance, then I guess I will figure out a way to continue throughtout the text to find the other occurances.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top