摘要:
在textBox1输入几个关键字,点击button1查询,这几个关键字在 richTextBox1中高亮显示,代码如下: private string GaoL = null; private void HighLightText() { string ss = textBox1.Text; string[] s = ss.Split(' '); foreach (string d in s) { GaoL = d; richTextBox1.SelectAll(); Regex r = new Regex(GaoL, RegexOptions.IgnoreCase); for 阅读全文