parthicaps
asked on
CHANGING COLOR DURING ENTRY IN TEXT BOX
In text box iam getting input for 6 characters,
i want to set "RED" foreground color for first 2 characters while
typing and remaining "BLUE". How to do this ...
i want to set "RED" foreground color for first 2 characters while
typing and remaining "BLUE". How to do this ...
If you want text formatting you'll need the richedit control. With the standard text control you can't defenine color for each char. Or you'll have to do some tricking by placing two textboxes on eachother.
If you reject the above answer, I'll supply the code for using the RichTextBox that will do exactly waht you want.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.