1
Answer

text color

derin tarakci

derin tarakci

10y
639
1
hi everyone for first time....

i am using VS2013 and C#...
i develop an WinForm application....
i get some text from a file.....
i want to different color words on a line at RTB or or any other text container...
like reserved or key words...
i want to detect and change color before they load to RTB.

anyone can say something?

regards
Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 10y
Well 'plain' text is just that - it doesn't know anything about colors, fonts etc.

So, if you're loading plain text into an RTB, there's no way to change colors before it's loaded though you can, of course, change them subsequently.

The only way you can set colors beforehand is to create an RTF document in an application such as MS Word or WordPad and then load that into the RTB.