Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hie. I developed one s/w I.e. typing speed tester. whatever user type the paragraph is in the one textBox and the font is set to the color red. my problem is that once user type the first word from the first textBox that particular word needs to become green. ..
plz tell me how can I do it?

I am using c# language to develop it.
Posted

1 solution

You can't.
TextBox controls do not an formatting for individual words, or even lines - it's all the text, or nothing.
You will have to do this manually, by taking over the whole paint function for the textbox, or (much simpler) use a RichTextBox instead.
 
Share this answer
 
Comments
KD Palekar 24-Jun-14 2:43am    
then plz tell me. how can I do it with richtextbox
Pankaj Nikam 24-Jun-14 3:01am    
(y)
KD Palekar 25-Jun-14 8:36am    
WHAT IS THIS?
Pankaj Nikam 7-Jul-14 1:52am    
I agree with the answer posted by @OriginalGriff. (y) means a thumbs up.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900