richtextbox之查找内容并定位 怎样在richtextbox中查找内容用find,并且要高亮显示须焦点要转到被选中的内容?求高手解答 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Font f=new Font("Verdana", 8F, FontStyle.Italic, GraphicsUnit.Point);string str="";if (richTextBox1.Find(str)>0){int pos=richTextBox1.Find(str);richTextBox1.SelectionStart=pos;richTextBox1.SelectionLength=str.Length; richTextBox1.SelectionFont=f;richTextBox1.SelectionColor=Color.Red;} http://topic.csdn.net/u/20100328/02/374027c0-97cf-496b-914e-ef8fe58fcf2d.html XML schema文档定义XML文档,那XML文档的根元素是什么 两个项目相互引用的情况怎么办? 请问有没有好用的曲线编辑控件?Windows Form的。 C#WINFORM中的DATAGRID控件问题,高手请进 Excel导入datatable,再导入数据库,导入数据库时还要判断,有些记录是数据库已经有的不能导入,谁做过?有代码最好 求高效的获取domain user的遍历算法 关于通过窗体名(字符类型)来调用项目中相批配的窗体 如何屏蔽掉开始菜单中的运行?急用,解决就结贴 如何用C#写自动测试脚本 .net mvc 登录问题 关于用C#写一个自动顶贴机 ◆请教一个简单的多线程的问题◆
string str="";
if (richTextBox1.Find(str)>0)
{
int pos=richTextBox1.Find(str);
richTextBox1.SelectionStart=pos;
richTextBox1.SelectionLength=str.Length;
richTextBox1.SelectionFont=f;
richTextBox1.SelectionColor=Color.Red;
}
http://topic.csdn.net/u/20100328/02/374027c0-97cf-496b-914e-ef8fe58fcf2d.html