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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Text color only on Certain Characters

Status
Not open for further replies.

Brenton

Technical User
Jul 29, 2002
43
US
I am creating a notepad type application, and I need to change the foreground color of certain words. for example

I would like to change all G00 to blue
and all G01 to Pink, and so on. Can some one help.

Thank you

Brent Pryer
 
I need to change only certain words.
For Example

G00 X2.3 Y4.9 Z5.1

I want to change all G00's to Blue, all X's to red, all Y's to orange, and all Z's to purple while leaving everything else as the default forecolor.

thank you
Brenton
 

When do you want to change the forecolor for these words, automatically when the word is finished being typed or when the document is done be typed? Also, Are you using a standard textbox or a Rich Text box?
 
buddyel

I need the colors to change automatically, also when I open a text file i need it to automatically detect if there are any Keywords to change.
I am using a richtextbox.

Thank you
Brenton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top