VB.NET expert please help

本文內容已被 [ kf_ying ] 在 2004-02-06 15:24:48 編輯過。如有問題,請報告版主或論壇管理刪除.

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--
請您先登陸,再發跟帖!