kf_ying2003-11-26 19:58:00
I'd like to build a text box where I can do the following:
1. to change font
2. to specify the color of certain letters, for example, to tell the program to make all the letter 'C' in the text red. I don't mean to manually highlight a letter and change its color, I want the program to change the color of the specified letters in the whole text automatically into the color I want.

I think I can use a rich text box to change font, but I don't know how to do the 2nd task. I am very interested in this program which outputs characters in different colores
http://msdn.microsoft.com/archive/d...msdn_msdn34.asp
but don't know how to make it work in VB.NET. I don't know where is the paint event? I also got compiling error like 'Line' is not supported in VB.NET.


any help is highly appreciated!





--文学城www.wenxuecity.com--