vb.net2003中的richtextbox格式 [英] richtextbox formatting in vb.net2003

查看:99
本文介绍了vb.net2003中的richtextbox格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个vb.net 2003,它读取.xml数据库并通过richtextbox显示文本.
我需要格式化来自.xml的richtextbox中的输出格式,就像发现"home"之类的单词时,它应以粗体显示,并使用特定颜色的给定或斜体显示.

反正有这样做吗?

如果有人找到我的解决方案,将不胜感激.

谢谢.
moii

I have this vb.net 2003 which read .xml database and display the text through richtextbox.
I need to format the output in the richtextbox which comes from the .xml like whenever word like ''home'' is found it should display in bold and color specific given or italic.

Is there anyway to do this?

Would be grateful if someone find me a solution for this.

Thank you.
moii

推荐答案

在TextString中使用Foreach单词进行搜索,然后拆分并添加所需的格式设置控件,然后追加下一部分.
Use a Foreach Word in TextString so search for it, then Split and add a formatting control of your choice, then append the next part.


如果给出示例代码,将不胜感激.

谢谢.

Zela
Would be very grateful if a sample code is given.

Thanks.

Zela


这篇关于vb.net2003中的richtextbox格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆