-
Oct 23rd, 2014, 10:40 AM
#1
Thread Starter
New Member
How to change the color of a word in a textbox
How i can change the color of a word in a textbox?
example:
i want when i write for example <html> then converts to <html> and after when i write i will write again black. but when program finding "<html>" the program will replace it to this <html>
-
Oct 23rd, 2014, 11:13 AM
#2
Re: How to change the color of a word in a textbox
You can't do this in a textbox, as it only supports single font colors for the entire box. You should look at the richtextbox control, which using RTF, can support doing what you want.
-
Oct 23rd, 2014, 01:11 PM
#3
Re: How to change the color of a word in a textbox
I have a syntax highlighter code in the codebank, but like kleinma mentions, it uses a Richtextbox, not a TextBox.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|