摘要: 在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 阅读全文
posted @ 2011-08-22 09:19 欧阳三寿 阅读(1297) 评论(1) 推荐(2) 编辑