Kryzsoccer
Programmer
I would like to change the color of the text as a user types in a textbox(or similar control) so that certain keywords are different colors. I know that with a Rich Text Box I can change color of text by selecting parts of the text and modifing it. But I have found this does not work well for changing text as a user types.
for example if the user types "the motor" motor should become blue(its a keyword) but if they then add a s("the motors"
then motor should go back to being normal.
Maybe my logic to change it needs to be improved or maybe there is a better control to use or better code??
If any of this isnt clear just let me know!
As always all help is appreciated!!
for example if the user types "the motor" motor should become blue(its a keyword) but if they then add a s("the motors"
Maybe my logic to change it needs to be improved or maybe there is a better control to use or better code??
If any of this isnt clear just let me know!
As always all help is appreciated!!