Link to home
Start Free TrialLog in
Avatar of parthicaps
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 ...
Avatar of nightliner
nightliner

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.
Avatar of Martin Liss
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
Avatar of vbyuval
vbyuval

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial