[Help Needed Pls]更改richTextBox中的特定文本颜色 [英] [Help Needed Pls] changing specific text colour in a richTextBox
本文介绍了[Help Needed Pls]更改richTextBox中的特定文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿伙计们,当有人使用richTextBox_TextChanged(C#)将它写入我的richTextBox时,我正在改变某个特定单词的颜色 - 例如,如果有人写了"Hello",那么在我的richTextBox中的任何一点,它将变为蓝色。
有人能提供帮助吗?
解决方案
非常感谢,这正是我的想法
Hey guys, I'm after a way of changing the colour of a specific word when someone writes it in my richTextBox using richTextBox_TextChanged (C#) - For example, if somebody writes "Hello" at ANY point in my richTextBox, it will change to blue. Is anyone able to help?
解决方案
That's excellent thanks, it's exactly what I wanted
这篇关于[Help Needed Pls]更改richTextBox中的特定文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文